I got into an argument with a co-worker regarding EF Core migrations and how we should handle them in a team environment. The current process we use (which I designed) is to use a branch with our names and self databases so every changes we make , we add-migration in our databases and branches and then merge our branches to develop branch. to prevent conflicts with migrations we add migration folder in gitignore in our branches. but the problem is we dont have migration history in git. but i have problem with this becuase we should have all changes in git.
Are there any best practices regarding this? we want to have migration histories in git branches and prevent EF Core migrations in a team?
how Handle EF Core migrations conflict in a team with different branches?