在我的heroku staging envinronment中,我跑了
heroku pg:reset
接着是
heroku rake db:schema:load
我收到此错误
-- create_table("cash_drawer_open", {:force=>true})
rake aborted!
PGError: ERROR: table "cash_drawer_open" does not exist
当然桌子不存在!!我想创造它......我做错了什么?
这一切在我的本地postgre开发环境中运行良好。
答案 0 :(得分:4)
heroku run rake db:schema:load
答案 1 :(得分:2)
如果一切都在本地工作正常,你可以做一个heroku db:push
。只需确保安装了taps
gem并且应该完成这项工作。
答案 2 :(得分:1)
尝试此操作以重新创建数据库:
heroku rake db:create
答案 3 :(得分:0)
再次运行迁移
heroku rake db:migrate