about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-23 17:38:38 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-23 17:38:38 +0100
commit6d98a731803eb37ff36f60ff004acfc4c27ae37b (patch)
tree5ccc79cb65ccc6174aea1c5e0a8452b5076026d9 /app/models
parentef2b92467977758466f4f19acb3334bee1fde107 (diff)
Domain blocks now have varying severity - auto-suspend vs auto-silence
Diffstat (limited to 'app/models')
-rw-r--r--app/models/domain_block.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/domain_block.rb b/app/models/domain_block.rb
index 9075b90a0..b4606da60 100644
--- a/app/models/domain_block.rb
+++ b/app/models/domain_block.rb
@@ -1,6 +1,8 @@
 # frozen_string_literal: true
 
 class DomainBlock < ApplicationRecord
+  enum severity: [:silence, :suspend]
+
   validates :domain, presence: true, uniqueness: true
 
   def self.blocked?(domain)