Review and Edit Generated Scripts
Fix autogenerated migrations before applying.
Autogenerate Is Not Perfect
Autogenerate is a great first draft, not a final answer. Always review the script before you apply it anywhere. 🔍
Open the Versions File
Each script lives in the versions folder. Open it and read the upgrade and downgrade functions like any other code.
All lessons in this course
- Why You Need Migrations, Not create_all
- Init and Autogenerate a Migration
- Apply and Roll Back with upgrade
- Review and Edit Generated Scripts