data_importer/db/migrate/20220427043126_create_cisa_known_exploits.rb

14 lines
348 B
Ruby
Raw Normal View History

class CreateCisaKnownExploits < ActiveRecord::Migration[7.0]
def change
create_table :cisa_known_exploits do |t|
t.string :title
t.string :catalog_version
t.date :date_released
t.index :date_released, unique: true
t.integer :count
t.jsonb :vulnerabilities, array: true
t.timestamps
end
end
end