Added ip whitelist max count and validation

This commit is contained in:
Sergei Tsoganov 2023-05-31 14:51:40 +03:00
parent 47849e3d36
commit ded8917adf
5 changed files with 39 additions and 1 deletions

View file

@ -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