Add admin API for managing e-mail domain blocks (#19066)
This commit is contained in:
parent
c556c3a0d1
commit
2a7766dcc9
4 changed files with 101 additions and 0 deletions
|
@ -17,6 +17,7 @@ class EmailDomainBlock < ApplicationRecord
|
|||
)
|
||||
|
||||
include DomainNormalizable
|
||||
include Paginable
|
||||
|
||||
belongs_to :parent, class_name: 'EmailDomainBlock', optional: true
|
||||
has_many :children, class_name: 'EmailDomainBlock', foreign_key: :parent_id, inverse_of: :parent, dependent: :destroy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue