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 に答える