Search code examples
ruby-on-rails-3ruby-1.9.3ruby-2.1

Built a RoR app previously with Ruby 1.9.3, if I use a new computer and install Ruby 2.1.2 will that cause problems?


I have an RoR app built previously with Ruby 1.9.3 and rails 3.0.1. I have deployed to Heroku previously with this setup. If I would like to use Ruby 2.1.2 on my new computer, when accessing the app code and trying to deploy again on Heroku will my app encounter problems because of the different Ruby versions?


Solution

  • According to this compatibility matrix, you will need a Ruby version 2.x.

    Rails Version    Possible Ruby Versions  Recommended Ruby Version
    1.0–2.1          1.8.6                   1.8.6
    2.2              1.8.6 or 1.8.7          1.8.7
    2.3              1.8.6, 1.8.7, or 1.9.1  1.8.7
    3.0–3.2          1.8.7, 1.9.2, or 1.9.3  1.9.3
    4.0–…            1.9.3, 2.0.x            2.0.x