zrbkpg
Last Updated: February 25, 2016
·
614
· devatotech
Avatar square

Reset Postgres Database on Heroku

If you need to do a quick reset on your DB on Heroku:

First copy your DB constant by using:

heroku config
Ex. HEROKU_POSTGRESQL_ORANGE_URL

Then do a reset passing the DB name:

heroku pg:reset HEROKU_POSTGRESQL_ORANGE_URL

Then a normal migrate/seed

heroku run rake db:migrate
heroku run rake db:seed

And you should be good to go.

Say Thanks
Respond