]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/057_add_map_bug_comment_event.rb
Tidy up some of the map bugs code
[rails.git] / db / migrate / 057_add_map_bug_comment_event.rb
index ff5f0b352e27b44ec4bc60ea78fa88dc29c2ab6d..c13c1f9d514bf5e025f2bce5671888c73e2ba19a 100644 (file)
@@ -2,13 +2,14 @@ require 'lib/migrate'
 
 class AddMapBugCommentEvent < ActiveRecord::Migration
   def self.up
-       create_enumeration :map_bug_event_enum, ["opened", "closed","reopened","commented","hidden"]
-       add_column :map_bug_comment, :event, :map_bug_event_enum
+    create_enumeration :map_bug_event_enum, ["opened", "closed", "reopened", "commented", "hidden"]
+
+    add_column :map_bug_comment, :event, :map_bug_event_enum
   end
 
   def self.down
+    remove_column :map_bug_comment, :event
 
-       remove_column :map_bug_comment, :event
-       drop_enumeration :map_bug_event_enum
+    drop_enumeration :map_bug_event_enum
   end
 end