File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 11
11
#
12
12
# It's strongly recommended to check this file into your version control system.
13
13
14
- ActiveRecord ::Schema . define ( :version => 20130531144949 ) do
14
+ ActiveRecord ::Schema . define ( :version => 20130604145732 ) do
15
15
16
16
create_table "api_keys" , :force => true do |t |
17
17
t . text "token"
440
440
t . datetime "updated_at" , :null => false
441
441
end
442
442
443
+ create_table "task_sessions" , :force => true do |t |
444
+ t . integer "task_id" , :null => false
445
+ t . integer "session_id" , :null => false
446
+ t . datetime "created_at" , :null => false
447
+ t . datetime "updated_at" , :null => false
448
+ end
449
+
443
450
create_table "tasks" , :force => true do |t |
444
451
t . integer "workspace_id" , :default => 1 , :null => false
445
452
t . string "created_by"
Original file line number Diff line number Diff line change @@ -786,7 +786,7 @@ def report_session(opts)
786
786
s = ::Mdm ::Session . new ( sess_data )
787
787
s . save!
788
788
789
- if session . exploit_task and session . exploit_task . record
789
+ if session and session . exploit_task and session . exploit_task . record
790
790
session_task = session . exploit_task . record
791
791
if session_task . class == Mdm ::Task
792
792
Mdm ::TaskSession . create ( :task => session_task , :session => s )
You can’t perform that action at this time.
0 commit comments