Every once in a while, someone opens a PR on one of our open source packages adding a
down
function to the migration. I usually close those PRs fast with a thank you and a message βWe donβt use down migrations in our projectsβ.While down migrations might seem like a safety net, they're often a false comfort that potentially creates more problems than they solve.
Instead of explaining this in every PR separately, let me share why we don't write down migrations and what we do instead.
continue reading on freek.dev
β οΈ This post links to an external website. β οΈ
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.