Which command creates new migration files from model changes?
- A python manage.py migrate
- B python manage.py makemigrations
- C python manage.py syncdb
- D python manage.py createmigration
Answer
python manage.py makemigrations
makemigrations generates the migration files by comparing models with the recorded state. migrate then applies them to the database.





