data_importer/db/migrate/20220404150811_create_cpes.rb

16 lines
324 B
Ruby
Raw Normal View History

2022-04-19 02:37:27 -05:00
# frozen_string_literal: true
2022-04-04 13:18:03 -05:00
class CreateCpes < ActiveRecord::Migration[7.0]
def change
create_table :cpes do |t|
t.string :status
t.date :modification_date
t.integer :nvd_id
t.index :nvd_id, unique: true
t.jsonb :references
t.string :title
t.string :name
end
end
end