public function dropMorphs($name, $indexName = null)
    {
        $this->dropIndex($indexName ?: $this->createIndexName('index', ["{$name}_type", "{$name}_id"]));

        $this->dropColumn("{$name}_type", "{$name}_id");
    }
public function dropMorphs($name, $indexName = null)
    {
        $this->dropIndex($indexName ?: $this->createIndexName('index', ["{$name}_type", "{$name}_id"]));

        $this->dropColumn("{$name}_type", "{$name}_id");
    }
public function dropMorphs ( $ name , $ indexName = null ) { $ this -> dropIndex ( $ indexName ? : $ this -> createIndexName ( 'index' , [ "{$name}_type" , "{$name}_id" ] ) ) ; $ this -> dropColumn ( "{$name}_type" , "{$name}_id" ) ; }
Indicate that the polymorphic columns should be dropped.

@param  string  $name
@param  string|null  $indexName
@return void
Indicate that the polymorphic columns should be dropped .