Patterns for "data-only" Rails migrations

Can you expand on this a bit, what is a data migration?

Migrations that don’t tend to change the schema, but intended to move data around in one database. It might not be a beginner level problem, but a problem that will hit users in a face at some moment.

database evolves, data should be retained and safely migrated. with bigger dataset, things could get rather complicated and not beginner friendly.

1 Like

I think this is a good idea. What do you think about the data_migrate gem?

I agree that it would be interesting to have an “official convention” for data migrations and maybe even native support to avoid people getting hurt with this sharp knife: