onRollbackForbidden method
Occurs when the rollback process with the specified number
of migrations
is aborted for safety reason.
Implementation
@override
void onRollbackForbidden(final int number)
{
if (number == 1) {
errorCLn(
'There is a migration to rollback in the database, but rollbacks '
'are forbidden.'
);
} else {
errorCLn(
'There are $number migrations to rollback in the database, but '
'rollbacks are forbidden.'
);
}
infoLn('Checking rollbacks ✖');
}