开发者

Heroku rake db:migrate failing with following error

So after pushing my app to heroku, I tried to migrate database to heroku. However, I get the following error.

C:\Users\Administrator\Ruby\Myapp>heroku rake开发者_开发技巧 db:migrate
rake aborted!
undefined method `task' for #<MyApp::Application:0x7fc922c28dd0>

In local, everything works just fine including migration.

Also, migration worked just fine about few days ago, therefore it seems the error is after the rake version which changed from 0.8.7 to 0.9.0 in Heroku.

How can I resolve this problem?


had this problem yesterday and posted here: Rake 0.9.0 'undefined method 'task' ' Several solutions have been specified.


Try adding

gem 'rake', '0.8.7'

to your Gemfile, to control the version of Rake that Heroku uses on your app.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜