I want to destroy the database but I'm not sure what the command would be. Does anyone know how to do this?
Your organization can use the “heroku addons:destroy” command to initiate deletion of a primary, forked or follower Heroku Postgres database.
You have to run heroku rake db:rollback while the updated code that has the . down migration is deployed to Heroku. After that, you can rollback the code. This was the missing step, there was no migration to rollback to seeing that I rollback the code already, thanks!
Heroku Postgres offers a number of different plans, each of which provides the highest security standards. Ultimately, Heroku Postgres is a great option for any developer looking to build, scale, or maintain their databases without having to take infrastructure into consideration.
You shouldn't use a postgres command to fully delete your database, as you will not have permissions to create a new one. Instead you should use the heroku command to clear out your database:
heroku pg:reset DATABASE_URL
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With