Artem Ignatyev
Not a member
Artem Ignatyev's latest activity
Friday, April 01 2011
6661
Multiple having calls on an ActiveRecord::Relation causes "wrong number of ar...
was created
in Ruby on Rails
-
Artem Ignatyev created the ticket at 7:59 AMLet's use any model (i.e. Model) and execute in console:
Model.select('id').group('id').having('2 > 1')
and we'll get the sql query similar to:
SELECT id FROM "...