I’m ALWAYS forgetting how to reset the postgres database on Heroku, because the typical rake db:drop/create/migrate won’t work on the Heroku command line. This is 99% for my own future reference, but to reset the database on Heroku:
- heroku pg:reset
- it will ask you to type in your heroku url, follow the directions and do so!
- heroku run rake db:migrate
- this may take a little while!
Easy breezy, I just always forget it!