How do you do a data migration where the migration only contains DML statements instead of the usual DDL?
r
Ryan
10/22/2021, 6:29 AM
The general recommendation is to separate data migrations from schema migrations, and run them with a different system, potentially by hand using a seed file or script. Here’s a blog post about this:
https://thoughtbot.com/blog/data-migrations-in-rails