Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creating last_scan_reports table
Browse files Browse the repository at this point in the history
it belongs to an isomorphic "resource"
Erez Freiberger committed Sep 13, 2017
1 parent 94064f9 commit 9568a18
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions db/migrate/20170913091115_create_last_scan_result.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class CreateLastScanResult < ActiveRecord::Migration[5.0]
def change
create_table :last_scan_results do |t|
t.string :last_scan_status
t.string :last_scan_message
t.belongs_to :resource, :polymorphic => true, :type => :bigint
end
end
end
5 changes: 5 additions & 0 deletions db/schema.yml
Original file line number Diff line number Diff line change
@@ -732,6 +732,11 @@ container_images:
- old_ems_id
- deleted_on
- type
last_scan_results:
- last_scan_status
- last_scan_message
- resource_type
- resource_id
container_label_tag_mappings:
- id
- labeled_resource_type

0 comments on commit 9568a18

Please sign in to comment.