mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
Refactor domain create xml builder, add dnskey model
This commit is contained in:
parent
b85420a598
commit
7d7a399ead
8 changed files with 102 additions and 45 deletions
11
db/migrate/20141001085322_create_dnskeys.rb
Normal file
11
db/migrate/20141001085322_create_dnskeys.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class CreateDnskeys < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :dnskeys do |t|
|
||||
t.integer :domain_id
|
||||
t.integer :flags
|
||||
t.integer :protocol
|
||||
t.integer :alg
|
||||
t.string :public_key
|
||||
end
|
||||
end
|
||||
end
|
10
db/schema.rb
10
db/schema.rb
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20140930093039) do
|
||||
ActiveRecord::Schema.define(version: 20141001085322) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -68,6 +68,14 @@ ActiveRecord::Schema.define(version: 20140930093039) do
|
|||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "dnskeys", force: true do |t|
|
||||
t.integer "domain_id"
|
||||
t.integer "flags"
|
||||
t.integer "protocol"
|
||||
t.integer "alg"
|
||||
t.string "public_key"
|
||||
end
|
||||
|
||||
create_table "domain_contacts", force: true do |t|
|
||||
t.integer "contact_id"
|
||||
t.integer "domain_id"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue