]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/057_add_map_bug_comment_event.rb
Avoid more models in old migrations
[rails.git] / db / migrate / 057_add_map_bug_comment_event.rb
index d5e77f49990c3fe6217e3b39126960d31ddf2ce7..ecdb967a169d8c4a29f18bdb86dca20e1f66efa3 100644 (file)
@@ -1,8 +1,8 @@
 require "migrate"
 
-class AddMapBugCommentEvent < ActiveRecord::Migration
+class AddMapBugCommentEvent < ActiveRecord::Migration[4.2]
   def self.up
-    create_enumeration :map_bug_event_enum, %w(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