From 9288f34fbf6f39af4b54d49c9ac458c911f28526 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Fri, 12 Mar 2010 15:58:02 +0000 Subject: [PATCH] Add a results column git-svn-id: file:///home/svn/framework3/trunk@8804 4d416f70-5f16-0410-b530-b9f4589650da --- data/sql/migrate/013_add_tasks_result.rb | 10 ++++++++++ lib/msf/core/model/task.rb | 1 + 2 files changed, 11 insertions(+) create mode 100644 data/sql/migrate/013_add_tasks_result.rb 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