mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
Validate DNS keys count
This commit is contained in:
parent
9519538744
commit
39ebabf064
10 changed files with 70 additions and 9 deletions
7
db/migrate/20141006124904_add_dnskey_range_validation.rb
Normal file
7
db/migrate/20141006124904_add_dnskey_range_validation.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class AddDnskeyRangeValidation < ActiveRecord::Migration
|
||||
def change
|
||||
sg = SettingGroup.find_by(code: 'domain_validation')
|
||||
sg.settings << Setting.create(code: 'dnskeys_min_count'.underscore, value: '0')
|
||||
sg.settings << Setting.create(code: 'dnskeys_max_count'.underscore, value: '9')
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue