Sometimes my Heroku DB will completely derp on me and go "NOPE" and not even a Heroku Run rake db:migrate will fix it.
Generally what I then proceed to do is use this sledgehammer for the task.
heroku pg:reset DATABASE_URL --confirm theashvale
You should then be able to re-create and re-migrate the database as desired.
This is really taking a sledgehammer to it though as all your data will be lost but it is nice to be able to start from scratch now and again.
No comments:
Post a Comment