This repository has been archived on 2023-07-01. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/db/migrate/20200312185443_add_parent_i...

6 lines
268 B
Ruby

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