protected function copyMigrations() : void
    {
        $this->stdout("\nCopy the migration files in a temp directory\n", Console::FG_YELLOW);
        FileHelper::removeDirectory($this->migrationPath);
        FileHelper::createDirectory($this->migrationPath);
        if (!is_dir($this->migrationPath)) {
            $this->stdout("Could not create a temporary directory migration\n", Console::FG_RED);
            exit();
        }
        $this->stdout("\tCreated a directory migration\n", Console::FG_GREEN);
        if ($dirs = $this->findMigrationDirs()) {
            foreach ($dirs as $dir) {
                FileHelper::copyDirectory($dir, $this->migrationPath);
            }
        }
        $this->stdout("\tThe copied files components migrations\n", Console::FG_GREEN);
        $appMigrateDir = \Yii::getAlias("@app/commands");
        if (is_dir($appMigrateDir)) {
            FileHelper::copyDirectory($appMigrateDir, $this->migrationPath);
        }
        $this->stdout("\tThe copied files app migrations\n\n", Console::FG_GREEN);
    }