6👍
✅
Next time when you rollback:
- Go into the migrations folder in your app.
- Look for the migration file where you would like to go back to. (for example “0012_post_category.py”)
- go in the terminal write:
./manage.py migrate yourAppName 0012
(this is just the example number) and hit enter - if everything goes well. Delete the other migrations which came after this number in your migrations folder.
Do not just delete migrations! Hope that helps.
Source:stackexchange.com