Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Migrate from rails 2.1.1 to 2.2.2

I am working on a project using rails 2.1.1. With the new release of 2.2.2 I want to migrate to the new version. Is there anything I need to change to migrate my 2.1.1 controllers, views, and models?

like image 433
Josh Moore Avatar asked Mar 01 '23 04:03

Josh Moore


2 Answers

Don't forget to run the update Rake task

rake rails:update

That will go ahead and make sure it updates any scripts and configs to reflect 2.2.

Once you have 2.2 installed, issue:

rake -T

to view the available tasks, double check it's there and go ahead and fire it off and you'll be up and running.

Good luck!

like image 72
mwilliams Avatar answered Mar 05 '23 15:03

mwilliams


There aren't any major changes in the way things are done. Here is the list of deprecations

Of course the best way to quickly discover changes is to have a good test suite in place. If you don't have that, I suggest dropping 2.2 into vendor/rails and clicking around the site by hand.

like image 30
gtd Avatar answered Mar 05 '23 14:03

gtd