0

我的机器上安装了 Rails 3.1.3 和 Rake 0.9.2 。当我这样做时gem list,我看到两者都安装了正确的版本,但是当我运行时,rake db:migrate我收到错误消息

缺少 Rails 3.1.3 gem。请gem install -v=3.1.3 rails为您已安装的 Rails 版本更新 config/environment.rb 中的 RAILS_GEM_VERSION 设置,或注释掉 RAILS_GEM_VERSION 以使用已安装的最新版本。

4

1 回答 1

1

你在使用捆绑器吗?如果是这样,请尝试使用bundler exec rake db:migrate.

于 2011-12-19T18:25:53.803 回答