WhoisBody refactored to has_one

This commit is contained in:
Priit Tark 2015-04-22 16:41:52 +03:00
parent 82fd2db963
commit db81a9e7bc
6 changed files with 62 additions and 27 deletions

View file

@ -294,13 +294,15 @@ ActiveRecord::Schema.define(version: 20150423083308) do
t.string "period_unit", limit: 1
t.string "creator_str"
t.string "updator_str"
t.text "whois_body"
t.integer "legacy_id"
t.integer "legacy_registrar_id"
t.integer "legacy_registrant_id"
t.json "whois_json"
t.datetime "outzone_at"
t.datetime "delete_at"
end
add_index "domains", ["delete_at"], name: "index_domains_on_delete_at", using: :btree
add_index "domains", ["outzone_at"], name: "index_domains_on_outzone_at", using: :btree
add_index "domains", ["registrant_id"], name: "index_domains_on_registrant_id", using: :btree
add_index "domains", ["registrar_id"], name: "index_domains_on_registrar_id", using: :btree
@ -908,6 +910,17 @@ ActiveRecord::Schema.define(version: 20150423083308) do
t.text "depricated_table_but_somehow_paper_trail_tests_fails_without_it"
end
create_table "whois_bodies", force: :cascade do |t|
t.integer "domain_id"
t.string "name"
t.text "whois_body"
t.json "whois_json"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
add_index "whois_bodies", ["domain_id"], name: "index_whois_bodies_on_domain_id", using: :btree
create_table "zonefile_settings", force: :cascade do |t|
t.string "origin"
t.integer "ttl"