Appearance
Migration
Implement down()
Write down() methods because:
- it should be possible to rollback failed releases
- developer experience: simplify switching between branches
Use for schema changes only
Migrations are for schema changes only, do not use them for data changes, unless it's unavoidable.
Alternatives:
- a disposable console command to run right after deployment
- Tinker session