Search code examples
ruby-on-railsruby-on-rails-3ruby-on-rails-3.1ruby-on-rails-2

Migrate an application from 2.3.8 to 3.1


any advice about how to migrate an app from rails 2.3.8 to rails 3.1? Should I go from 2.3.8 to 3.0 and then to 3.1?

Let me know your thoughts...

I'm especially interested in the approach to the Gemfile... and bundler. Any resource link would be welcome.

Thanks.


Solution

  • I'd recommend migrating to the latest version of 2.3 (2.3.14) before doing anything. Once you are on 2.3.14 you should run your tests and check your logs for any warnings and fix them. Once any issues are resolved, go ahead and try upgrading to 3.1.1. I think the largest change from 3.0 to 3.1 was the asset pipeline and you can ignore it while upgrading. As for resources, both PeepCode and RailsCasts offer great guides for doing exactly what you want.