0
0
Fork 0

Use enum-generated scope for IpBlock in CLI (#28144)

This commit is contained in:
Matt Jankowski 2024-03-14 05:31:15 -04:00 committed by GitHub
parent 681a89f684
commit 19cbadfbd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ class IpBlock < ApplicationRecord
sign_up_requires_approval: 5000,
sign_up_block: 5500,
no_access: 9999,
}
}, prefix: true
validates :ip, :severity, presence: true
validates :ip, uniqueness: true