Performance: Why migrations version the database
MEDIUM IMPACT
This affects the speed and reliability of database schema updates during app deployment and runtime.
Using Rails migrations with version numbers to track applied changesManually running SQL scripts without tracking versions or timestamps| Pattern | Database Locks | Repeated Changes | Downtime Risk | Verdict |
|---|---|---|---|---|
| Manual SQL scripts without versioning | High - long locks possible | High - repeated runs | High - conflicts cause downtime | [X] Bad |
| Rails migrations with versioning | Low - short incremental locks | None - runs once per version | Low - orderly updates | [OK] Good |