Me: I work (develop) on a Django project in a team. And we use postgresql as the database. I had untracked the migrations folders (and files) for obvious reasons.
Problem: Sometimes I work on multiple branches and when there is a difference in the models which extend django.db.models.Model the makemigrations fails.
My approach on the Problem: I decided to have a different database on my machine for each branch. Found out that this could be done using pygit2 (keep the name of database same as that of the branch).
Problem with my approach: The migrations are same in every branch as I have them untracked. I dont want to track migrations because pushing them would disturb the production server migrations.
Requirement: Whenever i switch branch, the migrations should change, but at the same time they should remain not pop up during 'git status'.
Thank you in advance