public function actionDown($limit = 'all')
{
$ret = parent::actionDown('all');
$query = new Query();
$query->from($this->migrationTable);
if (1 == $query->count()) {
$tableName = $this->db->schema->getRawTableName($this->migrationTable);
$this->stdout("Deleting migration history table \"{$tableName}\"...", Console::FG_YELLOW);
$this->db->createCommand()->dropTable($this->migrationTable)->execute();
$this->stdout("Done.\n", Console::FG_GREEN);
}
return $ret;
}