Backend Development
Django
Subjective
Oct 03, 2025
What are Django migrations and how do they work?
Detailed Explanation
Migrations are Django's way of propagating model changes to database schema.
Process:
1. Make model changes
2. Run makemigrations to create migration files
3. Run migrate to apply changes to database
Migration files contain operations like:
• CreateModel
• AddField
• RemoveField
Benefits:
• Version control for database schema
• Team collaboration
• Rollback capability
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts