Skip to content

Commit

Permalink
Creating last_scan_reports table
Browse files Browse the repository at this point in the history
it belongs to an isomorphic "resource"
  • Loading branch information
Erez Freiberger committed Sep 25, 2017
1 parent d4ccb97 commit a59e78d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions db/migrate/20170925155201_create_scan_result.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class CreateScanResult < ActiveRecord::Migration[5.0]
def change
create_table :scan_results do |t|
t.string :scan_status
t.string :scan_result_message
t.string :scan_type
t.belongs_to :resource, :polymorphic => true, :type => :bigint
end
end
end
6 changes: 6 additions & 0 deletions db/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,12 @@ container_images:
- old_ems_id
- deleted_on
- type
scan_results:
- scan_status
- scan_result_message
- scan_type
- resource_type
- resource_id
container_label_tag_mappings:
- id
- labeled_resource_type
Expand Down

0 comments on commit a59e78d

Please sign in to comment.