ef core migration sql script for entire database code example
Example: ef rollback migration
//EF 6.4
//PM> Update-Database -TargetMigration:"NameOfSecondToLastMigration"
//EF 6.4
//PM> Update-Database -TargetMigration:"NameOfSecondToLastMigration"