mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Added ip whitelist max count and validation
This commit is contained in:
parent
47849e3d36
commit
ded8917adf
5 changed files with 39 additions and 1 deletions
|
@ -0,0 +1,11 @@
|
|||
class AddIpWhitelistMaxCountSetting < ActiveRecord::Migration[6.1]
|
||||
def up
|
||||
Setting.create(code: 'ip_whitelist_max_count',
|
||||
value: 256, format: 'integer',
|
||||
group: 'other')
|
||||
end
|
||||
|
||||
def down
|
||||
Setting.find_by(code: 'ip_whitelist_max_count').destroy
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue