data_importer/db/migrate/20220407223152_create_cnas.rb
2022-04-19 02:37:27 -05:00

20 lines
474 B
Ruby

# frozen_string_literal: true
class CreateCnas < ActiveRecord::Migration[7.0]
def change
create_table :cnas do |t|
t.string :short_name
t.string :cna_id
t.index :cna_id, unique: true
t.string :organization_name
t.string :scope
t.jsonb :contact
t.jsonb :disclosure_policy
t.jsonb :security_advisories
t.string :resources, array: true
t.jsonb :cna
t.string :country
t.timestamps
end
end
end