ok so i have this call
location.requests.group_by(&:song)
location
>> location = Location.find 4
=>
showdate: "2010-11-20", created_at: "2010-10-28 01:20:42", updated_at:
"2010-10-28 01:20:42", band_id: nil, artist_name: "Metallica">
location.requests.group_by(&:song)
this call returns two records, “One” and “One”, because they are stored in db this way .... any idea on how to redo group_by just to return one record with
I am using sqlite
source
share