1$ ./manage.py squashmigrations myapp 0004
2Will squash the following migrations:
3 - 0001_initial
4 - 0002_some_change
5 - 0003_another_change
6 - 0004_undo_something
7Do you wish to proceed? [yN] y
8Optimizing...
9 Optimized from 12 operations to 7 operations.
10Created new squashed migration /home/andrew/Programs/DjangoTest/test/migrations/0001_squashed_0004_undo_somthing.py
11 You should commit this migration but leave the old ones in place;
12 the new migration will be used for new installs. Once you are sure
13 all instances of the codebase have applied the migrations you squashed,
14 you can delete them.
15