I have a parent model that has many child models
I want to destroy duplicate child records based on one parameter of the child.
I tried this:
parent.child.uniq! {|child| child.parameter }
It apparently works but the database does not reflects the change.