CodeZettaInterview Hub

NestJS · ORM Concepts · Senior · Best Practice

Migrations in production Nest apps — best practices?

Short Interview Answer

Expand/contract migrations, backward-compatible deploys, and never rely on synchronize in prod.

Detailed Explanation

CI runs migrations with locks. Document rollback. Separate schema from data migrations.

Did you know this answer?