Revert to a previous migration

In order to revert to a previous migration run this comman on the “Package Manager Console”

Update-Database -TargetMigration:"MigrationName"

If you need to revert to the first one run this command

Update-Database -TargetMigration:0