Ruby on Rails - Localhost and Heroku querys
===

I'm using rails 3.2.3 and ruby 1.9.3.

I am having issues deploying to heroku. The functionality I'm trying to achieve is working, but only locally, and I am using Postgres locally as well.

The querie is (i got more of these queries, but the symptoms are the same):

    pesquisa=pesquisa.joins('INNER JOIN facilities_hotels ON hotels.id=facilities_hotels.hotel_id')
             pesquisa=pesquisa.where('facilities_hotels.facility_id in (:fc_list)', :fc_list => params[:fc]).uniq
             pesquisa=pesquisa.group('hotels.id','hotel.name',<other fields>').having('count(facility_id) = :tamanho', :tamanho => params[:fc].size)

Locally this is returning all the right stuff, but on Heroku, it returns no data at all.

Any tips?

Thanks very much in advance