qbmhog
Last Updated: March 22, 2016
·
8.218K
· kurenn
2d0d71f3d7546f233778bfbf2554f324

Reset heroku postgres database

We at @icalialabs works with Rails apps all the time, and we make changes daily, so it is fair to say we need sometimes to restart the apps databases. By the way we deploy to Heroku, great service to get you up and running in no time.

It is really easy to reset your postgres database on Heroku just by running:

$ heroku pg:reset DATABASE

Using Rails

To run the migrations and seed for your database, run:

$ heroku run rake db:setup

Or if you feel like want to do it individually:

$ heroku run rake db:migrate

And then

$ heroku run rake db:seed
Say Thanks
Respond

1 Response
Add your response

27437
Nois

Thank you so much! I didn't saw this on heroku's documentations.

🔝

over 1 year ago ·