]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/057_add_map_bug_comment_event.rb
Merge remote-tracking branch 'upstream/pull/4216'
[rails.git] / db / migrate / 057_add_map_bug_comment_event.rb
index f28aee7d84378c4b028c72381da874a2d358b2a7..c88544099156f547d09d8e4b0d46815ddc330d81 100644 (file)
@@ -1,8 +1,6 @@
-require 'migrate'
-
-class AddMapBugCommentEvent < ActiveRecord::Migration
+class AddMapBugCommentEvent < ActiveRecord::Migration[4.2]
   def self.up
-    create_enumeration :map_bug_event_enum, ["opened", "closed", "reopened", "commented", "hidden"]
+    create_enumeration :map_bug_event_enum, %w[opened closed reopened commented hidden]
 
     add_column :map_bug_comment, :event, :map_bug_event_enum
   end