Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

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
    Artem Ignatyev created the ticket at 7:59 AM

    Let'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 "...