In my database I have a Series Table associated to a Videos Table and in the videos table i have Title Column. I am trying to figure out a way to create a rake task to scrub the data.
So say you have an array
If I do
Series.first.videos.all.each {|x| x.title } #=> ["Some Title Episode 1", "Some Title | Episode 1"]
These are duplicates but validates true on the model.
So I am trying to figure out a way to create a rake task to scrub and delete the extra data not needed preferably to delete the data with the older created_at time stamp.