2011-08-09 160 views
0

我是新来的Ruby和Rails,每当我试图用耙分贝生成我的数据库:迁移我收到以下错误:Rails 3的迁移错误

耙中止! 您已经激活了rake 0.9.3.beta.1,但您的Gemfile需要rake 0.9.2。考虑使用bundle exec。

我使用Ruby 1.9.2和Rails 3.

回答

0
Consider using bundle exec. 

有您的线索。试试这个:

bundle exec rake db:migrate 
+0

谢谢!像魅力一样工作。 – AmunRa

+0

与此相关的额外阅读:http://yehudakatz.com/2011/05/30/gem-versioning-and-bundler-doing-it-right/ – DGM