【问题标题】:PGERROR: ERROR relation "table_name" does not exist (avoiding git commits)PGERROR:错误关系“table_name”不存在(避免 git 提交)
【发布时间】: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 日志。是否有更好的解决方案可以自动解决此问题而无需执行所有这些步骤?

谢谢

【问题讨论】:

标签: git heroku activeadmin


【解决方案1】:

问题出在heroku这边。他们不得不在后端删除和更新一些东西。

【讨论】:

    猜你喜欢
    • 2012-01-13
    • 2012-12-20
    • 2011-01-03
    • 2020-09-03
    • 2020-04-15
    • 2011-07-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多