Ensure a pull request has all necessary migrations
In the past we've sometimes merged pull requests, only to realize later on that a small migration had been missed.
This mostly happens for trivial changes to the model (e.g adding a verbose_name
or a new value to a choices
) or for models based on configuration (e.g the list of languages).
We can make sure this never happens, simply by having the CI check that python manage.py makemigrations
doesn't create anything.