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.
精彩评论