When I try to run:
heroku run rake db:drop db:create db:migrate
I get the error:
Running rake db:drop attached to terminal... up, run.5 Couldn't drop adsfsadfas : #<ActiveRecord::StatementInvalid: PGError: ERROR: must be owner of database adsfsadfas : DROP DATABASE IF EXISTS "adsfsadfas">
I am on the Heroku Cedar stack. Am I allowed to drop databases on Heroku?
Thanks!
John
db:drop - Drops the database for the current RAILS_ENV environment. If RAILS_ENV is not specified it defaults to the development and test databases. db:drop:all - Drops the database for all environments. db:migrate - Runs migrations for the current environment that have not run yet.
The rake db:reset task is not supported. Heroku apps do not have permission to drop and create databases. Use the
heroku pg:reset
command instead.
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