about summary refs log tree commit diff
path: root/app/models/domain_block.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-08-12 23:01:19 +0200
committerGitHub <noreply@github.com>2019-08-12 23:01:19 +0200
commitcf421bafdf644f8c8a44b4f06f82841cbd568cdf (patch)
tree4d1f3b2c9bdcadcf0fe53372a75ba54c0c06875a /app/models/domain_block.rb
parentaa485d6f055b93fd7a9df8b47ed96122b38af39e (diff)
parentcfca28bc874125e63e7e1a3c96d94bd5a7eca108 (diff)
Merge pull request #1196 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
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