Add alert fields
git-svn-id: file:///home/svn/framework3/trunk@8766 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
aaea62bb92
commit
bd3d6b55f6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue