fix failing spec

This commit is contained in:
Daniel M Brasil 2024-10-01 23:21:58 -03:00
parent b3308f03f8
commit c22027be24
No known key found for this signature in database
GPG Key ID: AE1A28A226D1E692

View File

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