I have a table of records;
Users: id, screen_name, tweet
I want to return a list of the users and group by the screen_name so that there aren't duplicate screen_names in the list.
@users = User.all(:group => "screen_name")
This works fine when using MySQL, but not when I push to Heroku, which uses PostgreSQL.
How can I get a similar set of results using PostgreSQL?
There seem to be a good few posts on this but I couldn't figure out an answer from the comments.