public function actionDown($limit = 1)
    {
        if (is_numeric($limit) || $limit === 'all') {
            return parent::actionDown($limit);
        } else {
            return $this->actionPartialDown($limit);
        }
    }
public function actionDown($limit = 1)
    {
        if (is_numeric($limit) || $limit === 'all') {
            return parent::actionDown($limit);
        } else {
            return $this->actionPartialDown($limit);
        }
    }
public function actionDown ( $ limit = 1 ) { if ( is_numeric ( $ limit ) || $ limit === 'all' ) { return parent :: actionDown ( $ limit ) ; } else { return $ this -> actionPartialDown ( $ limit ) ; } }
Downgrades the application by reverting old migrations.
For example,

```
yii migrate/down     # revert the last migration
yii migrate/down 3   # revert the last 3 migrations
yii migrate/down all # revert all migrations
yii migrate/down 101129_185401                      # revert specific migration
yii migrate/down m101129_185401_create_user_table   # using full name
```

@param integer $limit the number of migrations or specific version to be reverted. Defaults to 1,
meaning the last applied migration will be reverted.
@throws Exception if the number of the steps specified is less than 1.

@return integer the status of the action execution. 0 means normal, other values mean abnormal.
Downgrades the application by reverting old migrations . For example