X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/4b17b92da09820dd7bf61a640fd37458b82b06fe..4abd9cfcf19701bf43322374c5df6dd586449e54:/db/migrate/057_add_map_bug_comment_event.rb?ds=sidebyside diff --git a/db/migrate/057_add_map_bug_comment_event.rb b/db/migrate/057_add_map_bug_comment_event.rb index ff5f0b352..c88544099 100644 --- a/db/migrate/057_add_map_bug_comment_event.rb +++ b/db/migrate/057_add_map_bug_comment_event.rb @@ -1,14 +1,13 @@ -require 'lib/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"] - 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