I won’t say that feature flagging your database migration will make everything easy, but it will make it easier to test it with real, live data (for a subset of your user base), and much easier to roll it back if something goes wrong. I will explain how you can use feature flags to gradually apply a database migration or schema change, while constantly verifying that the new model passes integrity checks. This ensures that the migration can be applied in a controlled manner, with very little risk.