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