Use enum-generated scope for IpBlock
in CLI (#28144)
This commit is contained in:
parent
681a89f684
commit
19cbadfbd6
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue