diff --git a/data/sql/migrate/013_add_tasks_result.rb b/data/sql/migrate/013_add_tasks_result.rb new file mode 100644 index 0000000000..bf01c7afb8 --- /dev/null +++ b/data/sql/migrate/013_add_tasks_result.rb @@ -0,0 +1,10 @@ +class AddTasksResult < ActiveRecord::Migration + def self.up + add_column :tasks, :result, :text + end + + def self.down + remove_column :tasks, :result + end +end + diff --git a/lib/msf/core/model/task.rb b/lib/msf/core/model/task.rb index 211fc9868b..6c12933473 100644 --- a/lib/msf/core/model/task.rb +++ b/lib/msf/core/model/task.rb @@ -6,6 +6,7 @@ class Task < ActiveRecord::Base belongs_to :workspace serialize :options + serialize :result end end