From 25a2d846e28f2bb8c64b644ef24b0244dcd2a8b9 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Thu, 23 Jun 2011 07:04:20 +0000 Subject: [PATCH] Add the settings column git-svn-id: file:///home/svn/framework3/trunk@13011 4d416f70-5f16-0410-b530-b9f4589650da --- .../20110622000000_add_settings_to_tasks_table.rb | 12 ++++++++++++ lib/msf/core/model/task.rb | 1 + 2 files changed, 13 insertions(+) create mode 100644 data/sql/migrate/20110622000000_add_settings_to_tasks_table.rb diff --git a/data/sql/migrate/20110622000000_add_settings_to_tasks_table.rb b/data/sql/migrate/20110622000000_add_settings_to_tasks_table.rb new file mode 100644 index 0000000000..ee9ee21070 --- /dev/null +++ b/data/sql/migrate/20110622000000_add_settings_to_tasks_table.rb @@ -0,0 +1,12 @@ +class AddSettingsToTasksTable < ActiveRecord::Migration + + def self.up + add_column :tasks, :settings, :binary + end + + def self.down + remove_column :tasks, :settings + end + +end + diff --git a/lib/msf/core/model/task.rb b/lib/msf/core/model/task.rb index db5cc28534..1f58781ca8 100644 --- a/lib/msf/core/model/task.rb +++ b/lib/msf/core/model/task.rb @@ -8,6 +8,7 @@ class Task < ActiveRecord::Base serialize :options serialize :result + serialize :settings end end