Class: AddAlertIsJsonToRapnsNotifications

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/templates/add_alert_is_json_to_rapns_notifications.rb

Class Method Summary collapse

Class Method Details

.downObject



6
7
8
# File 'lib/generators/templates/add_alert_is_json_to_rapns_notifications.rb', line 6

def self.down
  remove_column :rapns_notifications, :alert_is_json
end

.upObject



2
3
4
# File 'lib/generators/templates/add_alert_is_json_to_rapns_notifications.rb', line 2

def self.up
  add_column :rapns_notifications, :alert_is_json, :boolean, null: true, default: false
end