Class: AddLaunchNotificationToApnPullNotifications

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/apn_on_rails/install/templates/012_add_launch_notification_to_apn_pull_notifications.rb

Class Method Summary collapse

Class Method Details

.downObject


6
7
8
# File 'lib/generators/apn_on_rails/install/templates/012_add_launch_notification_to_apn_pull_notifications.rb', line 6

def self.down
  remove_column :apn_pull_notifications, :launch_notification
end

.upObject


2
3
4
# File 'lib/generators/apn_on_rails/install/templates/012_add_launch_notification_to_apn_pull_notifications.rb', line 2

def self.up
  add_column :apn_pull_notifications, :launch_notification, :boolean
end