Skip to content

Commit 91c2664

Browse files
committed
Add polymorphic relationship to Mdm::Vuln
and :origin MSP-12395 * update db/schema.rb
1 parent 7d46f42 commit 91c2664

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

db/schema.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
# It's strongly recommended that you check this file into your version control system.
1313

14-
ActiveRecord::Schema.define(version: 20150421211719) do
14+
ActiveRecord::Schema.define(version: 20150514182921) do
1515

1616
# These are extensions that must be enabled in order to support this database
1717
enable_extension "plpgsql"
@@ -684,9 +684,12 @@
684684
t.datetime "exploited_at"
685685
t.integer "vuln_detail_count", default: 0
686686
t.integer "vuln_attempt_count", default: 0
687+
t.integer "origin_id"
688+
t.string "origin_type"
687689
end
688690

689691
add_index "vulns", ["name"], name: "index_vulns_on_name", using: :btree
692+
add_index "vulns", ["origin_id"], name: "index_vulns_on_origin_id", using: :btree
690693

691694
create_table "vulns_refs", force: true do |t|
692695
t.integer "ref_id"

0 commit comments

Comments
 (0)