about summary refs log tree commit diff
path: root/app/models/domain_block.rb
diff options
context:
space:
mode:
authorReverite <github@reverite.sh>2019-08-13 15:45:40 -0700
committerReverite <github@reverite.sh>2019-08-13 15:45:40 -0700
commit2e221bd5b6472d1eecb654b3518af7886d3dadaf (patch)
treeafb9e3a86ba3a93b6b5f04cdec6070351992fed4 /app/models/domain_block.rb
parent9528d3eda280ffac20a18c6f21bfc51f594e2c86 (diff)
parentb859eb001717dfc62aebb8eba47b84c75aebe4ef (diff)
Merge branch 'glitch' into production
Diffstat (limited to 'app/models/domain_block.rb')
-rw-r--r--app/models/domain_block.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/domain_block.rb b/app/models/domain_block.rb
index 3f5b9f23e..37b8d98c6 100644
--- a/app/models/domain_block.rb
+++ b/app/models/domain_block.rb
@@ -19,7 +19,7 @@ class DomainBlock < ApplicationRecord
 
   enum severity: [:silence, :suspend, :noop]
 
-  validates :domain, presence: true, uniqueness: true
+  validates :domain, presence: true, uniqueness: true, domain: true
 
   has_many :accounts, foreign_key: :domain, primary_key: :domain
   delegate :count, to: :accounts, prefix: true