Splitting Rails migration into smaller pieces
If the table is huge and such a migration takes a lot of time, it sounds natural to split it into smaller pieces and run them without locking the table. See some thoughts about this approach here: https://veelenga.github.io/splitting-rails-migration-into-smaller-pieces
Post a comment