about summary refs log tree commit diff
path: root/app/models/account_domain_block.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/account_domain_block.rb')
-rw-r--r--app/models/account_domain_block.rb2
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