# Django Safe Migration

> Write, review, and rewrite Django migrations for PostgreSQL with zero-downtime guarantees.

Write, review, and rewrite Django migrations for PostgreSQL with zero-downtime guarantees. Use this skill whenever the user mentions migrations, Django schema changes, or deployment safety — even if they don't say "zero downtime" explicitly. Trigger on: "review this migration", "is this migration safe?", "write a migration for...", "rewrite this migration", "how do I add a NOT NULL column / drop a column / add an index / rename a column / add a FK without downtime", "will this migration cause locks?", "this migration is blocking production". Covers: SeparateDatabaseAndState two-file splits, AddIndexConcurrently, FK NOT VALID + VALIDATE, db_default for NOT NULL columns, lock_timeout, and RunPython safety rules.

- Page: https://ss33.ai/skills/vintasoftware/django-safe-migration-67461416982
- Publisher: vintasoftware
- Category: [Data & Analytics](https://ss33.ai/skills/category/data-and-analytics-m1r3i9) › [Databases & SQL](https://ss33.ai/skills/category/data-and-analytics-m1r3i9/databases-and-sql-f7srkv)
- Source: https://github.com/vintasoftware/django-ai-plugins/blob/b8af2688d994747666e6a793d441365807d6772f/plugins/django-safe-migration/skills/django-safe-migration/SKILL.md

## Skill

This skill's licence does not allow redistribution, so the store does not serve its text. Get it from the author: https://github.com/vintasoftware/django-ai-plugins/blob/b8af2688d994747666e6a793d441365807d6772f/plugins/django-safe-migration/skills/django-safe-migration/SKILL.md
