aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-09-19 15:37:43 +0100
committerRobin Houston <robin.houston@gmail.com>2012-09-19 15:37:43 +0100
commit49508e4e6112e385266e208342fe3a7e3797e851 (patch)
treee12cbf19d1601635226d39ccc40af2371c90cca9
parent550f143a9c9be1ebdfe257fe853a2adf1e13973c (diff)
Migration accidentally omitted from 550f143
-rw-r--r--db/migrate/20120919140404_add_comments_allowed_to_info_request.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20120919140404_add_comments_allowed_to_info_request.rb b/db/migrate/20120919140404_add_comments_allowed_to_info_request.rb
new file mode 100644
index 000000000..4ae0bce18
--- /dev/null
+++ b/db/migrate/20120919140404_add_comments_allowed_to_info_request.rb
@@ -0,0 +1,9 @@
+class AddCommentsAllowedToInfoRequest < ActiveRecord::Migration
+ def self.up
+ add_column :info_requests, :comments_allowed, :boolean, :null => false, :default => true
+ end
+
+ def self.down
+ remove_column :info_requests, :comments_allowed
+ end
+end