]> git.openstreetmap.org Git - rails.git/blob - db/migrate/057_add_map_bug_comment_event.rb
Fix require paths in migrations
[rails.git] / db / migrate / 057_add_map_bug_comment_event.rb
1 require 'migrate'
2
3 class AddMapBugCommentEvent < ActiveRecord::Migration
4   def self.up
5     create_enumeration :map_bug_event_enum, ["opened", "closed", "reopened", "commented", "hidden"]
6
7     add_column :map_bug_comment, :event, :map_bug_event_enum
8   end
9
10   def self.down
11     remove_column :map_bug_comment, :event
12
13     drop_enumeration :map_bug_event_enum
14   end
15 end