Class: AddAlertFields
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddAlertFields
- Defined in:
- db/migrate/010_add_alert_fields.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
9 10 11 12 13 14 |
# File 'db/migrate/010_add_alert_fields.rb', line 9 def self.down remove_column :notes, :critical remove_column :notes, :seen remove_column :events, :critical remove_column :events, :seen end |
.up ⇒ Object
2 3 4 5 6 7 |
# File 'db/migrate/010_add_alert_fields.rb', line 2 def self.up add_column :notes, :critical, :boolean add_column :notes, :seen, :boolean add_column :events, :critical, :boolean add_column :events, :seen, :boolean end |