From 91c26643dc76c8f505da92a7ed8a01b9363b416f Mon Sep 17 00:00:00 2001 From: Sonny Gonzalez Date: Thu, 21 May 2015 13:39:25 -0500 Subject: [PATCH] Add polymorphic relationship to Mdm::Vuln and :origin MSP-12395 * update db/schema.rb --- db/schema.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/db/schema.rb b/db/schema.rb index 7d9e8d02b7..ea06878e8e 100644 --- a/db/schema.rb +++ b/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: 20150421211719) do +ActiveRecord::Schema.define(version: 20150514182921) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -684,9 +684,12 @@ ActiveRecord::Schema.define(version: 20150421211719) do t.datetime "exploited_at" t.integer "vuln_detail_count", default: 0 t.integer "vuln_attempt_count", default: 0 + t.integer "origin_id" + t.string "origin_type" end add_index "vulns", ["name"], name: "index_vulns_on_name", using: :btree + add_index "vulns", ["origin_id"], name: "index_vulns_on_origin_id", using: :btree create_table "vulns_refs", force: true do |t| t.integer "ref_id"