gpt4 book ai didi

ruby-on-rails - 在Heroku Cedar堆栈上运行rake db:drop db:create db:migrate

转载 作者:行者123 更新时间:2023-12-03 08:36:40 27 4
gpt4 key购买 nike

当我尝试运行时:

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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com