Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 778
Awais Shafqat Avatar asked Jan 07 '14 11:01

Awais Shafqat


2 Answers

This is a detailed instruction:

  1. install new ruby version
  2. run all tests
  3. fix all errors
  4. profit
like image 76
phoet Avatar answered Oct 08 '22 14:10

phoet


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.
like image 32
Awais Shafqat Avatar answered Oct 08 '22 15:10

Awais Shafqat