Helps
- Standup is back in the Lounge today
Hang on folks, we’re iterating again…
- Recommendations when writing a migration
This is in regards to a migration which involves a large amount of models.
One option is to clone the models you care about (into a different directory).
Another option is to do the schema change and the data migration as a rake task that is unit testable.
It depends whether this is a one-time event or if it’s a boundary you’re going to cross back-and-forth.
Interestings
- JSON Deep Clone in 1 line
def JSON.deep(object)
JSON.parse(object.to_json)
end
Events
- Yoga @ 6p – all welcome