migrate RoR Project
have a existing Rails p开发者_如何转开发roject, 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.
精彩评论