Error updating from Rails 3.2.22 to Rails 4.2.4

I am trying to upgrade our application from Rails 3.2.22 to Rails 4.2.4 using Ruby 2.2.3.

Here is what I have done so far:

  • Modified Gemfile to indicate rails, "~> 4.2.4"
  • bundle
  • bundle update rails

Full decryption below.

ActiveRecord is not listed in our Gemfile, so I don’t understand what it blocked or where to fix it?

 Craigs-MacBook-Pro~/Work/mbc(master|βœ”) % git checkout -b rails-424 Switched to a new branch 'rails-424' Craigs-MacBook-Pro~/Work/mbc(rails-424|βœ”) % vim Gemfile Craigs-MacBook-Pro~/Work/mbc(rails-424|✚1) % bundle Fetching gem metadata from https://rubygems.org/........ Fetching version metadata from https://rubygems.org/... Fetching dependency metadata from https://rubygems.org/.. You have requested: rails ~> 4.2.4 The bundle currently has rails locked at 3.2.22. Try running `bundle update rails` Craigs-MacBook-Pro~/Work/mbc(rails-424|✚1) % bundle update rails Fetching gem metadata from https://rubygems.org/........ Fetching version metadata from https://rubygems.org/... Fetching dependency metadata from https://rubygems.org/.. Resolving dependencies............ Bundler could not find compatible versions for gem "activerecord": In Gemfile: activerecord (< 4.3, >= 3.1) ruby activerecord (< 5.0, >= 3.0) ruby vestal_versions (>= 0) ruby depends on activerecord (~> 3.0) ruby activerecord (> 3.0.0) ruby rails (~> 4.2.4) ruby depends on activerecord (= 4.2.4) ruby Craigs-MacBook-Pro~/Work/mbc(rails-424|✚1) % 
+5
source share
1 answer

vestal_versions gem is dependent on ActiveRecord 3.0 .

You need to specify the version of vestal_versions gem in the Gemfile or specify 2.0.0 , and then:

 bundle update rails vestal_versions 
+1
source

All Articles