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

View file

@ -61,6 +61,7 @@ ActiveRecord::Base.transaction do
SettingEntry.create(code: 'dispute_period_in_months', value: '36', format: 'integer', group: 'other')
SettingEntry.create(code: 'registry_whois_disclaimer', value: 'Search results may not be used for commercial, advertising, recompilation, repackaging, redistribution, reuse, obscuring or other similar activities.', format: 'string', group: 'contacts')
SettingEntry.create(code: 'legal_document_is_mandatory', value: 'true', format: 'boolean', group: 'domain_validation')
SettingEntry.create(code: 'ip_whitelist_max_count', value: '256', format: 'integer', group: 'other')
AdminUser.where(username: 'admin').first_or_create!(
username: 'admin',

View file

@ -5467,6 +5467,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20221206091556'),
('20221207102831'),
('20221214073933'),
('20221214074252');
('20221214074252'),
('20230531111154');