So this is more of an arel question than anything but here\'s what I am trying to do.
I have three objects lets say, called Items
If you want to get the entire model back, but still maintain uniqueness, you can use this:
Item.select('distinct on (name) *')
I've only tested this with a Postgres database. It may or may not work with mysql.