Q: Are migrations removed from the database?
A: No. You can do this without erasing it.
You must do this as shown below in the Package Manager console .
Step 1:
PM > Add-Migration InitialCreate –IgnoreChanges
The above command will create an empty migration with the current model as a snapshot.
Step 2:
PM > Update-Database
InitialCreate . , , __MigrationsHistory, , .
: CF