gabrielbaez/has_messages_generators — Issue #1: ActiveRecord::StatementInvalid in Messages#index 
Author: gabrielbaez
Created: 2011-10-25 10:52:39+00:00
State: open

PGError: ERROR: column "messages.id" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: SELECT "messages".* FROM "messages" WHERE "messages"."user...
^
: SELECT "messages".* FROM "messages" WHERE "messages"."user_id" = 1 AND "messages"."copies" = 'f' AND "messages"."deleted" = 'f' GROUP BY subject_id LIMIT 10 OFFSET 0