Class: EnrichmentsV45Schema

Inherits:
Object
  • Object
show all
Defined in:
lib/mihari/database.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



127
128
129
130
131
132
133
134
135
136
137
# File 'lib/mihari/database.rb', line 127

def change
  create_table :cpes, if_not_exists: true do |t|
    t.string :cpe, null: false
    t.belongs_to :artifact, foreign_key: true
  end

  create_table :ports, if_not_exists: true do |t|
    t.integer :port, null: false
    t.belongs_to :artifact, foreign_key: true
  end
end