我将我的应用程序部署到Heroku。当我想查看记录时,它会返回错误:Heroku在活动管理员返回Postgres错误
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.
任何提示?
你使用Postgres作为你的开发数据库吗? – 2012-07-14 01:50:01
不可以。我的开发数据库是MySql。 – Tony 2012-07-14 15:42:46