I’ve got a few instances where some duplicate records were created and now I need to clean them out since I’ve figured out what was causing them.
I have ResponseSets and each ResponseSet has_many Responses.
Each Response has a value for answer_id and that answer_id should only be present once for any ResponseSet.
So what I need to do is find duplicate Responses for each ResponseSet based on if there are more than one of the same answer_id.
My brain hurts trying to explain, so if more details are needed, please just ask.
Try something like this: