mirror of
https://github.com/duthaho/claudekit.git
synced 2026-06-11 20:54:56 +03:00
15 lines
407 B
Markdown
15 lines
407 B
Markdown
---
|
|
paths:
|
|
- "**/migrations/**"
|
|
- "**/*.migration.*"
|
|
- "**/alembic/**"
|
|
---
|
|
|
|
# Database Migration Rules
|
|
|
|
- Every migration must be reversible — include down/rollback logic
|
|
- Never modify existing migrations — create new ones
|
|
- Add indexes for foreign keys and frequently queried columns
|
|
- Use transactions for multi-step migrations
|
|
- Test migrations against a copy of production data when possible
|