remove duplicate validation

This commit is contained in:
Daniel M Brasil 2024-02-23 09:10:33 -03:00
parent d13c20fabe
commit c24f31ca50
No known key found for this signature in database
GPG Key ID: AE1A28A226D1E692
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class IpBlock < ApplicationRecord
no_access: 9999,
}, prefix: true, validate: true
validates :ip, :severity, presence: true
validates :ip, presence: true
validates :ip, uniqueness: true
after_commit :reset_cache