无法在heroku上运行迁移

时间:2018-06-13 12:50:59

标签: ruby-on-rails heroku migration

我正在尝试在Heroku上运行迁移,并且我正在跟踪权限级别的错误。

PG::InsufficientPrivilege: ERROR:  permission denied for relation schema_migrations
: INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.6/lib/active_record/connection_adapters/postgresql_adapter.rb:598:in `async_exec'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.6/lib/active_record/connection_adapters/postgresql_adapter.rb:598:in `block in exec_no_cache'
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.6/lib/active_record/connection_adapters/abstract_adapter.rb:590:in `block in log'
/app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.6/lib/active_support/notifications/instrumenter.rb:21:in `instrument'

我的heroku pg:info输出

Plan:                  Hobby-dev
Status:                Available
Connections:           0/20
PG Version:            10.3
Created:               2018-01-18 06:17 UTC
Data Size:             7.6 MB
Tables:                0
Rows:                  0/10000 (In compliance)
Fork/Follow:           Unsupported
Rollback:              Unsupported
Continuous Protection: Off
Add-on:                postgresql-rugged-85486

0 个答案:

没有答案