Class: AddRpush::AddAlertIsJsonToRapnsNotifications

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/templates/add_rpush.rb

Class Method Summary collapse

Class Method Details

.downObject



98
99
100
# File 'lib/generators/templates/add_rpush.rb', line 98

def self.down
  remove_column :rapns_notifications, :alert_is_json
end

.upObject



94
95
96
# File 'lib/generators/templates/add_rpush.rb', line 94

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