Dump and Load to squash old migrations

from blog Just Some Code, | ↗ original
This post is part of my Advent of Code 2022. Recently, I stumbled upon the article Get Rid of Your Old Database Migrations. The author shows how Clojure, Ruby, and Django use the “Dump and Load” approach to compact or squash old migrations. This is how I implemented the “Dump and Load” approach in one of my client’s projects. 1. Export database...