Migrating Your Rails App From 1.1.6 to 1.2.2

Posted by Scott on Mar 3rd, 2007

The two Rails apps I’ve been working on were started when v1.1.6 was the latest stable version of Rails. I’ve wanted to fully transition them to the new 1.2.2 release, and have been kind of sitting around waiting for someone to write up exactly what all the differences are that need to be merged into your project to upgrade. Since this apparently hasn’t happened (I’ve done some intensive Googling for it), I finally broke down and migrated the projects myself.

I didn’t document every single change I made, but below I’ll list the files that you’ll want to diff and merge if you want to do this yourself:


README
app/controllers/application.rb
config/boot.rb
config/environment.rb
config/routes.rb
config/environments/production.rb
public/404.html
public/500.html
public/javascripts/controls.js
public/javascripts/dragdrop.js
public/javascripts/effects.js
public/javascripts/prototype.js
script/process/inspector

The files in app/ and config/ had to be merged by hand, but the rest I just copied over from a freshly created rails project. Now I’m rolling with the latest version of prototype and can sleep better knowing that my projects are running in a fully complaint Rails 1.2.2 environment.

Update: kain in #rubyonrails noted that you can do a “rake update:javascripts” to cleanly update your javascript assets.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

Blog Badges



[FSF Associate Member]

Archives