Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Make migrations in several steps

Hi there,

In the video, Kenneth proceed to the commande 'makemigrations', but comment the class 'TrueFalseQuestion' to create the first migration ('MultipleChoiceQuestion').

And then remove comment and make migration for the class 'TrueFalseQuestion'.

I don't understand why the command 'makemigrations' is not done in one time?

Thansk for your feedback

2 Answers

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,468 Points

By using makemigrations after each change you preserve what the incremental changes was. This allows you to selectively migrate changes if you choose to skip a migration. This Stack Overflow question discusses a scenario where a migration is skipped (or "faked").

Thanks Chris, that's clear!