I have an application on Heroku. However, whenever I change my database locally and then push the changes to the application, the database doesn't not change.
I realized that I need to run a rake on the Heroku database. However when I try heroku rake db:migrate
I get the following error.
rake aborted! uninitialized constant Rake::DSL`
How do I solve this problem?
I've been improvising with heroku db:push
, but that will not be able to hold because it deletes the current database.
If you are using the new Cedar Stack, you should use
heroku run rake db:migrate