Remote Ruby cover image

Data Migrations in Rails

Remote Ruby

00:00

How to Migrate a Task Successfully

If you're migrating all these users payments, for instance, you can add a column on user called like payment migrated true false. And then your task rescue and just be like update this record to have this set to false or just like don't set it to true. That's perfect because when we're like migrating the records over, that's what we have the IDs in the database. We never delete the old ones. You just always have the history of everything.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app