# frozen_string_literal: true

class AddParentIdToEmailDomainBlocks < ActiveRecord::Migration[5.2]
  def change
    safety_assured { add_reference :email_domain_blocks, :parent, null: true, default: nil, foreign_key: { on_delete: :cascade, to_table: :email_domain_blocks }, index: false }
  end
end
