Migration
Pronunciationmy-GRAY-shun
Definition
A versioned file that describes one change to the database structure, like adding a column. Running it applies the change.
Where you hear it
Deployments and team workflows with Django, Prisma, or Rails.
Examples
Run the migration before starting the new version.
Never edit a migration that already ran in production.
The migration adds the email column and fills it in for the existing users.
Common mistake
Editing an old migration. Create a new one so every environment follows the same history.
Don't confuse with
Migration updates the database structure over time, whereas a seed populates the database with initial or test data.
Say it at work
- In a meeting or chat
Did someone add a new migration for the user profile table, or should I create one?
- In an email or ticket
Please make sure to run the latest migration before testing the changes on the staging environment.