public function buildFieldMigrationForTable($name, $type, $indexed, $tableName)
    {
        $path = $this->getMigrationPath($tableName, $name);
        $migration = $this->getTableFieldMigrationName($name, $tableName);

        $contents = view('_hierarchy::migrations.field', [
            'field'     => $name,
            'table'     => source_table_name($tableName),
            'migration' => $migration,
            'type'      => $this->getColumnType($type),
            'indexed'   => $indexed
        ])->render();

        $this->write($path, $contents);

        return $this->getMigrationClassPath($migration);
    }