-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding subject_id and subject_type fields to openscap_results table to allow assigning OpenSCAPResult to OpenStack VMs and later also other inventory. Existing container_id association is not touched in this PR, but it could be migrated to polymorphic a subject association in future.
- Loading branch information
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters