/**
  * @param \CModule $moduleInstance
  *
  * @return string
  */
 private function getMigrationsPath($moduleInstance)
 {
     $migrationsDirName = $moduleInstance instanceof MigrationsConfigurationInterface ? $moduleInstance->migrationsDirectory() : self::DEFAULT_MIGRATIONS_DIR;
     $moduleMigratePath = $moduleInstance->basePath . DIRECTORY_SEPARATOR . $migrationsDirName;
     return $moduleMigratePath;
 }