]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/057_add_map_bug_comment_event.rb
Standardise on double quoted strings
[rails.git] / db / migrate / 057_add_map_bug_comment_event.rb
index ff5f0b352e27b44ec4bc60ea78fa88dc29c2ab6d..d5e77f49990c3fe6217e3b39126960d31ddf2ce7 100644 (file)
@@ -1,14 +1,15 @@
-require 'lib/migrate'
+require "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, %w(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