mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 07:26:22 +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
|
|
@ -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',
|
||||
|
|
|
@ -5467,6 +5467,7 @@ INSERT INTO "schema_migrations" (version) VALUES
|
|||
('20221206091556'),
|
||||
('20221207102831'),
|
||||
('20221214073933'),
|
||||
('20221214074252');
|
||||
('20221214074252'),
|
||||
('20230531111154');
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue