openstreetmap-website/db/migrate/057_add_map_bug_comment_event.rb
2020-12-30 20:30:21 +00:00

13 lines
341 B
Ruby

class AddMapBugCommentEvent < ActiveRecord::Migration[4.2]
def self.up
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
drop_enumeration :map_bug_event_enum
end
end