0

我将我的应用程序部署到 Heroku。当我想查看记录时,它返回一个错误:

2012-07-13T22:28:04+00:00 app[web.1]: Started GET "/admin/non_profits/1" for 200.40.55.210 at 2012-07-13 22:28:04 +0000
2012-07-13T22:28:06+00:00 app[web.1]: ActionView::Template::Error (PG::Error: ERROR:  operator does not exist: character varying = integer
2012-07-13T22:28:06+00:00 app[web.1]: LINE 1: ...Profit' AND "active_admin_comments"."resource_id" = 1 AND "a...
2012-07-13T22:28:06+00:00 app[web.1]: HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.

有什么提示吗?

4

1 回答 1

0

是的,我建议将您的开发数据库更改为 PG。如果您在他们的 Cedar 堆栈https://devcenter.heroku.com/articles/rails3上,Heroku 强烈建议您这样做。

这应该可以帮助您在开发中复制问题。

于 2012-07-14T23:05:58.030 回答