InfraLoka AcademyPathwayAI
PathwayAI

Module 7 · Chapter 7: Data and migrations

Data and migrations

4 min read6 min readReviewed 26 October 2026

In short

Write add-only migrations. At release: back up, migrate, then swap the app, so the old version keeps running if the migration fails. Rehearse risky migrations on a schema-only production copy with no user data.

After this lesson you can

  • Design a simple table and write migrations that only add
  • Run the migration before the new app version starts
  • Rehearse risky migrations on a schema-only copy of the production database

Sign in to read this lesson

The title and summary are open to everyone. The full lesson is for signed-in learners.