aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20131024152540_add_body_to_info_request_batches.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20131024152540_add_body_to_info_request_batches.rb b/db/migrate/20131024152540_add_body_to_info_request_batches.rb
new file mode 100644
index 000000000..5f9b3af10
--- /dev/null
+++ b/db/migrate/20131024152540_add_body_to_info_request_batches.rb
@@ -0,0 +1,11 @@
+class AddBodyToInfoRequestBatches < ActiveRecord::Migration
+ def up
+ add_column :info_request_batches, :body, :text
+ add_index :info_request_batches, [:user_id, :body, :title]
+ end
+
+ def down
+ remove_column :info_request_batches, :body
+ end
+
+end