ruby-on-rails – Heroku rake db:schema:加载表不存在
发布时间:2020-12-17 02:41:47 所属栏目:百科 来源:网络整理
导读:在我的heroku升级环境中,我跑了 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 当然桌子不存在!!我想创造它
在我的heroku升级环境中,我跑了
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开发环境. 解决方法
如果一切都在本地工作正常,你可以做一个heroku db:push.只要确保你安装了水龙头宝石,那应该可以完成这项工作.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |