当我尝试运行时:
heroku run rake db:drop db:create db:migrate
我得到错误:
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">
我在Heroku Cedar堆栈上。我可以在Heroku上删除数据库吗?
谢谢!
约翰
最佳答案
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.
关于ruby-on-rails - 在Heroku Cedar堆栈上运行rake db:drop db:create db:migrate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8162420/