[Ruby] Distinct in Active Record

Neil Moomey neil at motznik.com
Wed Oct 17 16:35:23 PDT 2007


How is this done in Active Record?

select distinct * from table

I can find distinct for calculate and count but not for :all.  Yes, I could
use :group but I have 13 fields to group by.

Neil


More information about the Ruby mailing list