X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b5d0de88eab8b22bedec7fd7cc34552caa1584ab..0a3aba7f891ba55a5500f02907cec15d44554eae:/db/migrate/057_add_map_bug_comment_event.rb?ds=inline diff --git a/db/migrate/057_add_map_bug_comment_event.rb b/db/migrate/057_add_map_bug_comment_event.rb index ff5f0b352..f28aee7d8 100644 --- a/db/migrate/057_add_map_bug_comment_event.rb +++ b/db/migrate/057_add_map_bug_comment_event.rb @@ -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, ["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