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
Written by Abraham
Related protips
1 Response
Thank you so much! I didn't saw this on heroku's documentations.
🔝
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#