Fix IP blocks not having a unique index (#19456)
This commit is contained in:
@@ -25,6 +25,7 @@ class IpBlock < ApplicationRecord
|
||||
}
|
||||
|
||||
validates :ip, :severity, presence: true
|
||||
validates :ip, uniqueness: true
|
||||
|
||||
after_commit :reset_cache
|
||||
|
||||
|
Reference in New Issue
Block a user