mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +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
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20141001085322) do
|
||||
ActiveRecord::Schema.define(version: 20141006124904) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue