aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-07-31 15:32:57 +0100
committerLouise Crow <louise.crow@gmail.com>2013-09-16 12:11:40 +0100
commita23be37bb6b4c4991766e1ed0f9cd0922c8db3a7 (patch)
tree43bd8057a5a0b6fcc45824e8d79079876c26c62c /db
parent220e4ac2c76c16b3d16c77753228fe439bafc7c7 (diff)
Remove prominence.
Add a migration to remove the unused column 'prominence' from info_request_events, remove validation of prominence, remove unused InfoRequestEvent.user_can_view? method. Remove references to InfoRequestEvent.prominence.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130731142632_remove_prominence_from_info_request_event.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20130731142632_remove_prominence_from_info_request_event.rb b/db/migrate/20130731142632_remove_prominence_from_info_request_event.rb
new file mode 100644
index 000000000..df0278c20
--- /dev/null
+++ b/db/migrate/20130731142632_remove_prominence_from_info_request_event.rb
@@ -0,0 +1,9 @@
+class RemoveProminenceFromInfoRequestEvent < ActiveRecord::Migration
+ def up
+ remove_column :info_request_events, :prominence
+ end
+
+ def down
+ add_column :info_request_events, :prominence, :string, :null => false, :default => 'normal'
+ end
+end