Monthly Archives: March 2011
Deduping join data in ruby based on multiple attributes
In the past I created an app using Rails built in HABTM and no unique index on the join tables. I’m more into the has_many :through choice today.
In order to migrate my data with a unqiue index, I had a bunch of de-duping to do. It was a bit trickier than [...]
Posted in Software Tagged de-duplication, habtm, removing duplicates, ruby, Ruby On Rails, unique index Comments closed

Recursive custom to_json in Ruby for arrays of objects or nested objects