diff options
Diffstat (limited to 'app/models/ip_block.rb')
-rw-r--r-- | app/models/ip_block.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/ip_block.rb b/app/models/ip_block.rb index 8666f4248..31343f0e1 100644 --- a/app/models/ip_block.rb +++ b/app/models/ip_block.rb @@ -25,6 +25,7 @@ class IpBlock < ApplicationRecord } validates :ip, :severity, presence: true + validates :ip, uniqueness: true after_commit :reset_cache |