2022-04-19 02:37:27 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-04-07 18:15:21 -05:00
|
|
|
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
|
2022-04-18 22:07:22 -05:00
|
|
|
t.timestamps
|
2022-04-07 18:15:21 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|