Add alert fields

git-svn-id: file:///home/svn/framework3/trunk@8766 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-03-10 17:31:47 +00:00
parent aaea62bb92
commit bd3d6b55f6
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
class AddAlertFields < ActiveRecord::Migration
def self.up
add_column :notes, :critical, :boolean
add_column :notes, :seen, :boolean
add_column :events, :critical, :boolean
add_column :events, :seen, :boolean
end
def self.down
remove_column :notes, :critical
remove_column :notes, :seen
remove_column :events, :critical
remove_column :events, :seen
end
end