Search code examples
ruby-on-railsrubyupgrade

how to upgrade rails application from ruby 1.9 to 2.0


I have my current application in Ruby 1.9.3 and I want to migrate it to ruby 2.0. I have googled it but couldn't find any resource that clearly describes the steps required to upgrade to 2.0. Can anyone give me the stepwise guide for migrating from ruby 1.9 to 2.0? thanks in advance.


Solution

  • You need to follow the following steps:

    • Install new Ruby Version
    • Run bundle install (you may need to update some gems and rails)
    • Run tests . (If you have coverage of all of you application. If not run the whole application manually and fix the errors. Most of the errors would be syntax and other small issues.)
    • Your application is migrated.