parent
699db454c3
commit
7a1f8a58df
7 changed files with 24 additions and 5 deletions
|
@ -15,7 +15,7 @@ class AccountDomainBlock < ApplicationRecord
|
|||
include DomainNormalizable
|
||||
|
||||
belongs_to :account
|
||||
validates :domain, presence: true, uniqueness: { scope: :account_id }
|
||||
validates :domain, presence: true, uniqueness: { scope: :account_id }, domain: true
|
||||
|
||||
after_commit :remove_blocking_cache
|
||||
after_commit :remove_relationship_cache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue