Schema changes

Being written

This page is being written.

Add and alter columns, and prepare initial data.

This page will cover

  • How to write a migration, with both up and down
  • A migration is a historical record — once merged, never edit it again
  • Never reference definitions that keep evolving; spell everything out in the migration
  • Seeds: the initial data the application requires