diff --git a/db/migrate/20170717084208_add_subject_to_open_scap_result.rb b/db/migrate/20170717084208_add_subject_to_open_scap_result.rb new file mode 100644 index 000000000..a76089c80 --- /dev/null +++ b/db/migrate/20170717084208_add_subject_to_open_scap_result.rb @@ -0,0 +1,6 @@ +class AddSubjectToOpenScapResult < ActiveRecord::Migration[5.0] + def change + add_column :openscap_results, :subject_id, :bigint + add_column :openscap_results, :subject_type, :string + end +end diff --git a/db/schema.yml b/db/schema.yml index f05dc5e92..d2415d2de 100644 --- a/db/schema.yml +++ b/db/schema.yml @@ -5415,6 +5415,8 @@ openscap_results: - id - container_image_id - created_at +- subject_id +- subject_type openscap_rule_results: - id - openscap_result_id