Migrating Rails 1.0 Application to 1.1


#1

Hi, I was wondering, what’s the steps to migrating a Rails 1.0 to 1.1?

Thanks in advance,

-Conrad


#2

From the Rails Weblog

"

Upgrading from 1.0

So with such a massive update, upgrading is going to be hell, right?
Wrong!
We’ve gone to painstaking lengths to ensure that upgrading from 1.0 will
be
as easy as pie. Here goes the steps:

  • Update to Rails 1.1:
    gem install rails --include-dependencies
  • Update JavaScripts for RJS:
    rake rails:update

That’s pretty much it! If you’re seeing any nastiness after upgrading,
it’s
most likely due to a plugin that’s incompatible with 1.1. See if the
author
hasn’t updated it and otherwise force him to do so.

If you’re on Ruby 1.8.2 with Windows, though, you’ll want to upgrade to
the
1.8.4 (or the script/console will fail). And even if you’re on another
platform, it’s a good idea to upgrade to Ruby 1.8.4. We still support
1.8.2,
but might not in the next major release. So may as well get the
upgrading
with over with now."


#3

Conrad,

It’s very easy, check:
http://weblog.rubyonrails.org/articles/2006/03/28/rails-1-1-rjs-active-record-respond_to-integration-tests-and-500-other-things

Note that you may have problems when upgrading to ruby 1.8.4, replace
all your tabs with spaces.

Upgrading from 1.0

So with such a massive update, upgrading is going to be hell, right?
Wrong! Weâ??ve gone to painstaking lengths to ensure that upgrading from
1.0 will be as easy as pie. Here goes the steps:

* Update to Rails 1.1:
  gem install rails --include-dependencies
* Update JavaScripts for RJS:
  rake rails:update

Thatâ??s pretty much it! If youâ??re seeing any nastiness after upgrading,
itâ??s most likely due to a plugin thatâ??s incompatible with 1.1. See if
the author hasnâ??t updated it and otherwise force him to do so.

If youâ??re on Ruby 1.8.2 with Windows, though, youâ??ll want to upgrade to
the 1.8.4 (or the script/console will fail). And even if youâ??re on
another platform, itâ??s a good idea to upgrade to Ruby 1.8.4. We still
support 1.8.2, but might not in the next major release. So may as well
get the upgrading with over with now.