AddTargetableAttributes::down PHP Метод

down() публичный Метод

Reverse the migrations.
public down ( ) : void
Результат void
    public function down()
    {
        foreach ($this->relations as $relation) {
            $className = "REBELinBLUE\\Deployer\\{$relation}";
            $instance = new $className();
            $table = $instance->getTable();
            Schema::table($table, function (Blueprint $table) {
                $table->dropColumn('target_id');
                $table->dropColumn('target_type');
            });
        }
    }
AddTargetableAttributes