Saturday, March 26, 2016

Heroku Reset Database


WARNING: This action will delete your database and it's contents but if that is what you want to do proceed with caution and fully warned.

To reset your database:

(The name of my database is jobby-job - change that to the name of yours.)
heroku pg:reset DATABASE_URL

Then it will ask you:

 !    WARNING: Destructive Action
 !    This command will affect the app: jobby-job
 !    To proceed, type "jobby-job" or re-run this command with --confirm jobby-job

> jobby-job

Resetting DATABASE_URL... done

Then run  $ heroku pg:reset DATABASE_URL --confirm jobby-job

No comments:

Post a Comment