Say I have three migration histories (call it init, m1 and m2). I use package manager to generate all the migration cs files and when I run my website on a live environment, it will update the database to the latest version m2.
Say unfortunately we found a major problem with migration m2 on live and whats to roll back, then what is the right way to do it?
I know that I call run this on my local machine:
Update-Database –TargetMigration: m1
However, that will only update my local version of the database. For production environment, should I do something like manually delete the migrationhistory record on live or delete the m2.cs
migration file generated by entity framework and redeploy the site?