我从MySQL切换到PostgreSQL用于Heroku.现在我的搜索无效.无法弄清楚操作员有什么问题.ActionView :: Template :: Error(PG :: UndefinedFunction:ERROR:运算符不存在:整数~~未知.
2014-11-11T19:59:58.082607+00:00 app[web.1]: Processing by AllListingsController#search_listings as JS
2014-11-11T19:59:58.105074+00:00 app[web.1]: 4: <% @listings.each do |listing| %>
2014-11-11T19:59:58.102205+00:00 app[web.1]: ^
2014-11-11T19:59:58.105066+00:00 app[web.1]: HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
2014-11-11T19:59:58.105083+00:00 app[web.1]: app/controllers/all_listings_controller.rb:14:in `search_listings'
2014-11-11T19:59:58.110318+00:00 heroku[router]: at=info method=GET path="/search_listings?q=500&_=1415735994648" host=subleasy.herokuapp.com request_id=24a21078-d3fd-4bce-9afb-bfc9d976c0a7 fwd="50.247.32.153" dyno=web.1 connect=1ms service=35ms status=500 bytes=1754
2014-11-11T19:59:58.103449+00:00 app[web.1]: Completed 500 Internal Server Error in 21ms
2014-11-11T19:59:58.102207+00:00 app[web.1]: HINT: No operator matches the given name …Run Code Online (Sandbox Code Playgroud)