diff options
author | Reverite <github@reverite.sh> | 2019-08-13 15:45:40 -0700 |
---|---|---|
committer | Reverite <github@reverite.sh> | 2019-08-13 15:45:40 -0700 |
commit | 2e221bd5b6472d1eecb654b3518af7886d3dadaf (patch) | |
tree | afb9e3a86ba3a93b6b5f04cdec6070351992fed4 /app/models/account_domain_block.rb | |
parent | 9528d3eda280ffac20a18c6f21bfc51f594e2c86 (diff) | |
parent | b859eb001717dfc62aebb8eba47b84c75aebe4ef (diff) |
Merge branch 'glitch' into production
Diffstat (limited to 'app/models/account_domain_block.rb')
-rw-r--r-- | app/models/account_domain_block.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/account_domain_block.rb b/app/models/account_domain_block.rb index 7c0d60379..3aaffde9a 100644 --- a/app/models/account_domain_block.rb +++ b/app/models/account_domain_block.rb @@ -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 |