Refactor domain create xml builder, add dnskey model

This commit is contained in:
Martin Lensment 2014-10-01 16:53:42 +03:00
parent b85420a598
commit 7d7a399ead
8 changed files with 102 additions and 45 deletions

View 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

View file

@ -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"