What is a database migration?
It is a step-by-step description of a change to the database structure: adding a field, splitting a table, changing a format. Migrations are stored with the code and applied the same way on every server, so the database does not drift between the test and production environments. They are tested on a copy of the data first, and changes that delete data are made only after a backup.
More in our guide on the web app database.