Lesson 924 of 2116
Database Migrations Are Not Suggestions
A schema edit needs a migration, a rollback story, and data safety. Never let an agent freestyle production tables.
Lesson map
What this lesson covers
Learning path
The main moves in order
- 1Database Migrations Are Not Suggestions
- 2migration
- 3schema
- 4rollback
Concept cluster
Terms to connect while reading
Section 1
Database Migrations Are Not Suggestions
A schema edit needs a migration, a rollback story, and data safety. Never let an agent freestyle production tables.
- 1Name the job before naming the tool.
- 2Write the smallest useful scope the agent can finish.
- 3Run the result as a user, not as a fan of the tool.
- 4Inspect the diff, data access, and failure path before sharing.
Use this as the working prompt or checklist for the lesson.
Add a nullable column profiles.timezone with a migration. Do not rewrite existing rows. Add app fallback to 'America/New_York' when timezone is null.- What should the user be able to do when this is finished?
- What data should the app or agent never expose?
- What test proves the change works?
- What rollback path exists if the output is wrong?
Key terms in this lesson
End-of-lesson quiz
Check what stuck
15 questions · Score saves to your progress.
Tutor
Curious about “Database Migrations Are Not Suggestions”?
Ask anything about this lesson. I’ll answer using just what you’re reading — short, friendly, grounded.
Progress saved locally in this browser. Sign in to sync across devices.
Related lessons
Keep going
Creators · 50 min
Deploy Pipelines With AI in the Loop
AI belongs in CI/CD too. From PR previews to rollback judgment calls, agents can operate inside your pipeline safely — if you scope them right.
Creators · 13 min
Production Incidents With an AI Co-Pilot
When prod is on fire, AI agents can be either your best partner or a dangerous distraction. Learn the incident workflow that uses AI safely under pressure — and the moments to put it down.
Creators · 14 min
RLS Before Launch: The Supabase Lesson
Most scary vibe-coding security stories are not about genius hackers. They are about public database access with weak or missing Row Level Security. Write the smallest useful scope the agent can finish.
