2015-09-08 16 views
5

Próbuję uaktualnić naszą aplikację z Rails 3.2.22 do Rails 4.2.4 z Ruby 2.2.3.Błąd aktualizacji z Rails 3.2.22 na Rails 4.2.4

Oto co zrobiłem do tej pory:

  1. Modified Gemfile określić rails, "~> 4.2.4"
  2. bundle
  3. bundle update rails

Pełen zapis jest poniżej.

ActiveRecord nie jest określony w naszym Gemfile, więc nie rozumiem, co jest zablokowane lub gdzie to naprawić?

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) % 

Odpowiedz

1

vestal_versions gem ma zależność do ActiveRecord 3.0.

Trzeba unspecify wersję vestal_versions gem w Gemfile lub podać do 2.0.0 a następnie:

bundle update rails vestal_versions 
+0

Ach, tak „zależy” była kluczem fraza tam. –

+0

Czy to działa? – asiniy

+0

Tak, jeszcze mnie do następnego zestawu błędów. Nie mogę przyjąć odpowiedzi przez kilka minut. –

Powiązane problemy