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 27, 2017
1 parent d4ccb97 commit ec53a4c
Show file tree
Hide file tree
Showing 2 changed files with 17 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
7 changes: 7 additions & 0 deletions db/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5817,6 +5817,13 @@ scan_items:
- file_mtime
- prod_default
- mode
scan_results:
- id
- scan_status
- scan_result_message
- scan_type
- resource_type
- resource_id
schema_migrations:
- version
security_contexts:
Expand Down

0 comments on commit ec53a4c

Please sign in to comment.