简体   繁体   中英

migrate RoR Project

have a existing Rails project, which was build on version 2.3.4.
On my local machine a have Rails version 3.0.3.
When a call rake db:migrate in the terminal, then the terminal replies following:

Missing the Rails 2.3.4 gem. Please gem install -v=2.3.4 rails , update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.

A new created Project can be invoked by rake db:migrate
How can get running this project?

rake db:migrate loads up the rails environment, which loads up your gems, for which on this project rails 2.3.4 is used.

try using rvm to manage your projects, or you need to do gem install -v=2.3.4 rails to get this running. If that version is installed, rubygems will load it for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM