<?php

use Illuminate\Database\Migrations\Migration;
use Inside\Content\Models\Pivot;

class CleanFieldOfRemovedType extends Migration
{
    public function up(): void
    {
        Pivot::query()
            ->where('related_type', type_to_class('construction_quarters'))
            ->where('related_field', 'construction_quarters')
            ->delete();
    }
}
