I am executing this query:
When you use the string form of group, rails doesn’t look into the string to see that you are grouping on 2 different things.
I’d try group(“date_format(insertdate, ‘%Y/%m’)”, “type”)
Keep up to date with Rails on Twitter and This Week in Rails
Policies: Conduct, License, Maintenance, Security, Trademarks