How can I group User by name and get only the most recent User for each name,
order(create_at: :desc)
I am already grouping my users by name but I can't get only the most recent for each name:
User.group(:id, :name).select(:id, :name, :created_at)
[EDIT 01]
Now I am tryint to get uniq users but also the most recent: Works!
User.order(upadted_at: :desc).uniq{ |u| u.name }