diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-08-08 23:04:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-08 23:04:19 +0200 |
commit | 7a1f8a58df7edeb4f1d03c9dd3c25d5370d858a6 (patch) | |
tree | cc52064354f522e63a70494346655202b3d2ebf9 /app/models/account_domain_block.rb | |
parent | 699db454c370247684243d7497f6ebacefbb2a57 (diff) |
Fix crash when saving invalid domain name (#11528)
Fix #7629
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 |