-
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.
it belongs to an isomorphic "resource"
- Loading branch information
Erez Freiberger
committed
Sep 25, 2017
1 parent
d4ccb97
commit a59e78d
Showing
2 changed files
with
16 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,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 |
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