I did a mistake in my rails app, and I didn't enforce the uniqueness of logins. Now I'd like to clean this mess by finding and removing duplicates (manually) in my code.
Is there a nice command I could enter in the Rails console that would let me find those duplicates ? Eg. find two users with the same login, and maybe make an array of array of duplicates ?