public void DowngradeToPrevious() { if (runner.HasMigrationsToApplyRollback()) { runner.Rollback(1); } }
private static void Downgrade(IMigrationRunner runner) { if (!runner.HasMigrationsToApplyRollback()) { Console.WriteLine("No migration to rollback"); return; } runner.Rollback(1); }