diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-10-24 17:03:52 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-12-04 09:32:43 +0000 |
commit | ce262657761c1c47c47e2f6cc7bf683543ebbdb7 (patch) | |
tree | 800fc74aebcbc5dae39800abdf0830f2afa6251e /db | |
parent | 4b2e3ef0b6f5b881597242a4afe1404415256f3b (diff) |
Add check for double submission.
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20131024152540_add_body_to_info_request_batches.rb | 11 |
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 |