Migrations in the Pipeline

Talk it through out loud with your AI coach.

The problem

  • hard
  • Pro

You want database migrations to run automatically as part of every deploy. Explain where in the pipeline they should run, what can go wrong, and how you'd keep deploys safe when a migration and new code ship together.

What a strong answer covers

  • Where schema changes belong in the deploy sequence, and who runs them.
  • Keeping old and new code working against the same database during a release.
  • What should happen when a schema change fails or takes too long.
  • Splitting risky schema changes across several releases, and testing them beforehand.

Common mistake: Shipping a change that renames or drops a column in the same release that stops using it, breaking running servers and any rollback.

Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.

Practise it out loud