Originally published on gregale.dev . I build Gregale, so read this as a vendor's page. This post was written with AI assistance.
Host Django with managed PostgreSQL on a platform that runs manage.py migrate inside a pre-traffic release command with a separate migration role and lets you roll back application code and database state together. On Gregale, Django apps auto-detect manage.py and wsgi.py , separate runtime DATABASE_URL (no DDL privileges) from MIGRATION_DATABASE_URL , and recover from bad schema changes with gregale rollback --restore-databases .
Why Django migrations break standard rollbacks
Reverting Python code after a destructive migrate ( DROP COLUMN , non-null alterations, or backfills) leaves your database schema ahead of the old release. Most PaaS platforms fix only half the problem:
Pre-traffic release commands ( release: ). On Gregale, declared release commands run in a disposable one-off microVM before Gunicorn instances start receiving production traffic.…