mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
DNSSEC refactor
This commit is contained in:
parent
6f12af5e0b
commit
3453b7f4a1
14 changed files with 150 additions and 30 deletions
|
@ -1,9 +1,9 @@
|
|||
class AddDnskeySettings < ActiveRecord::Migration
|
||||
def change
|
||||
sg = SettingGroup.create(code: 'dnskeys')
|
||||
sg.settings << Setting.create(code: 'ds_algorithm', value: 1)
|
||||
sg.settings << Setting.create(code: 'allow_ds_data', value: 1)
|
||||
sg.settings << Setting.create(code: 'allow_ds_data_with_keys', value: 1)
|
||||
sg.settings << Setting.create(code: 'allow_key_data', value: 1)
|
||||
sg.settings << Setting.create(code: Setting::DS_ALGORITHM, value: 1)
|
||||
sg.settings << Setting.create(code: Setting::ALLOW_DS_DATA, value: 1)
|
||||
sg.settings << Setting.create(code: Setting::ALLOW_DS_DATA_WITH_KEYS, value: 1)
|
||||
sg.settings << Setting.create(code: Setting::ALLOW_KEY_DATA, value: 1)
|
||||
end
|
||||
end
|
||||
|
|
10
db/migrate/20141009100818_create_delegation_signer.rb
Normal file
10
db/migrate/20141009100818_create_delegation_signer.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
class CreateDelegationSigner < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :delegation_signers do |t|
|
||||
t.integer :domain_id
|
||||
t.string :key_tag
|
||||
t.integer :digest_type
|
||||
t.string :digest
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class AddDelegationSignerToDnskey < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :dnskeys, :delegation_signer_id, :integer
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue