my best advice is not to use automatic migration. It’s always better to add manual migrations, as well as avoid mass migration and follow best practices for manual migration.
automatic migration is not a magic tool, and there will be several cases when you want to add some additional changes to the migration. You only perform using manual migration.
To enable migration, enter "enable-migrations" in the package manager console
Thus, you will have full control over updating or downgrading the database, as well as easy to track migration.
Just three simple steps in the package manager console.
1) add-migrations [some name for your migration]
2) migrations are created for changes, you are viewing them, and you can also make changes to it
3) The updated database is now complete.
migration handling is less painful!
source share