Devise\Models\Scaffolding\MigrationScaffolding::buildMigration PHP Method

buildMigration() private method

private buildMigration ( ) : mixed
return mixed
    private function buildMigration()
    {
        $migrationTemplate = $this->getMigrationTemplatePath();
        $targetFile = $this->getTargetFilePath();
        $template = $this->Framework->File->get($migrationTemplate);
        foreach ($this->constants as $key => $value) {
            $template = str_replace('*|' . $key . '|*', $value, $template);
        }
        $template = $this->convertFields($template);
        return $this->saveMigration($targetFile, $template);
    }