How to reset Heroku PostgreSQL database

To drop database

heroku pg:reset DATABASE --app name_of_your_app;

To migrate database

heroku run rake db:migrate --app name_of_your_app;

To seed database

heroku run rake db:seed --app name_of_your_app;

but you can run both commands at the same time

heroku run rake db:migrate db:seed --app name_of_your_app;

after that, run

heroku restart

That will reset your Heroku database