【发布时间】:2014-01-18 19:38:03
【问题描述】:
我和这篇文章有同样的问题......
PGError: ERROR: relation "table_name" does not exist
我的解决方案是注释掉相关的 ActiveAdmin 文件,然后运行 db:migrate。但是,要在 Heroku 上执行此操作,我需要
1) comment out the files related to activeadmin
2) Make make a git commit
3) Push the commit to heroku
4) Run the migrate
5) Make another git commit
6) Push the commit to heroku
这似乎浪费了很多步骤并且弄脏了我的 git 日志。是否有更好的解决方案可以自动解决此问题而无需执行所有这些步骤?
谢谢
【问题讨论】:
-
你做错了什么。我建议阅读标有“Heroku”的 Github 票证:github.com/gregbell/active_admin/…
标签: git heroku activeadmin