Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wellington1993/fe039c55debfa8d8eca4f3ed7c75874c to your computer and use it in GitHub Desktop.
Save wellington1993/fe039c55debfa8d8eca4f3ed7c75874c to your computer and use it in GitHub Desktop.
Rails and Ruby Compatibility
55
I have an old 2.1.1 Ruby on Rails application, with the system upgraded to use Ruby 1.8.7. It originally used 1.8.5 or so.
I want to upgrade it to Ruby 1.9.x for performance reasons, and possibly to a newer Ruby on Rails as well.
I cannot find any easy chart of compatibility between different Ruby versions and Ruby on Rails versions.
Will 2.1.1 work with Ruby 1.9.x? If not, how far do I need to upgrade it first, and what kind of issues am I likely to encounter? My application does complicated things to database layer, but the rest is fairly straightforward.
ruby-on-rails ruby
shareeditflag
edited Jan 31 '12 at 22:27
the Tin Man
138k2727 gold badges181181 silver badges258258 bronze badges
asked Jan 31 '12 at 21:19
taw
9,6731313 gold badges4545 silver badges6969 bronze badges
I don't know exactly which version of Ruby on Rails works with which Ruby, but I think the best way to test different versions compatibility is to install RVM – Michał Czapko Jan 31 '12 at 21:25
It's unlikely Rails 2.1.1 supports Ruby 1.9, as Ruby 1.9.0 was known to be very buggy with Rails, and Ruby 1.9.1 was released after Rails 2.1.1. – Andrew Marshall Jan 31 '12 at 21:33
The last version of Ruby that Rails 3.2.22.5 supports is Ruby 2.3.6. After that, you'll need to update Rails to 4+. – Joshua Pinter Feb 24 '18 at 23:23
add a comment
start a bounty
8 Answers
active
oldest
votes
42
This is an old question, but stable branches of Rails since 3.0 use travis-ci for automated testing, and the fact that rails is tested against a version of ruby is a good indication that it should work on that version of ruby.
The list of tested ruby versions, by rails branch, is:
Rails 3.0
1.8.7
1.9.2
1.9.3
Rails 3.1
1.8.7
1.9.2
1.9.3
Rails 3.2
1.8.7
1.9.2
1.9.3
2.0.0
2.1.8
2.2.6
2.3.3
Rails 4.0
1.9.3
2.0.0
2.1
2.2
Rails 4.1
1.9.3
2.0.0
2.1
2.2.4
2.3.0
Rails 4.2
1.9.3
2.0.0-p648
2.1.10
2.2.10
2.3.8
2.4.5
Rails 5.0
2.2.10
2.3.8
2.4.5
Rails 5.1
2.2.10
2.3.7
2.4.4
2.5.1
Rails 5.2
2.2.10
2.3.7
2.4.4
2.5.1
Rails 6.0
2.5.3
2.6.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment