migrations
Installation
SKILL.md
Migrations
Standard Lucid migrations — BaseSchema subclasses in app/<mod>/database/migrations/<ts>_<name>.ts with up() and down(). Three things are specific to this starter kit:
- Assumes no production data. When adding a column to an existing table, edit the existing
create_<table>_table.tsmigration and runpnpm ace migration:freshinstead of layering analter_tablemigration on top. The goal is that every downstream project inherits a clean single migration per table, not a create-then-alter chain. - Migration paths are explicit per module in
apps/web/config/database.ts→connections.postgres.migrations.paths. There is no autoloader. Add the module's path when it first gets a migration ([[module-scaffolding]]). apps/web/app/core/database/schema.tsis auto-generated but committed — models import their schemas from it, soacecannot boot on a fresh checkout without the file. Regenerated onmigration:run/fresh; commit the diff alongside the migration change. Framework-owned — never hand-edit or lint it.