protected function validateMigrationPaths($migrationPaths)
    {
        foreach ($migrationPaths as $migrationPath) {
            $path = \Yii::getAlias($migrationPath, false);
            if ($path === false) {
                throw new ExtensionException(
                  __CLASS__,
                  "Invalid path alias: $migrationPath"
                );
            }

            if (!file_exists($path)) {
                throw new ExtensionException(
                  __CLASS__,
                  "The migration path does not exist: " . realpath($this->getRootDir() . $path)
                );
            }
        }
    }