yii\db\Migration::safeDown PHP Method

safeDown() public method

This method differs from Migration::down in that the DB logic implemented here will be enclosed within a DB transaction. Child classes may implement this method instead of Migration::down if the DB logic needs to be within a transaction.
public safeDown ( ) : boolean
return boolean return a false value to indicate the migration fails and should not proceed further. All other return values mean the migration succeeds.
    public function safeDown()
    {
    }