Class: Rpush320AddApnsP8

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

Class Method Summary collapse

Class Method Details

.downObject



9
10
11
12
13
14
# File 'lib/generators/templates/rpush_3_2_0_add_apns_p8.rb', line 9

def self.down
  remove_column :rpush_apps, :apn_key
  remove_column :rpush_apps, :apn_key_id
  remove_column :rpush_apps, :team_id
  remove_column :rpush_apps, :bundle_id
end

.upObject



2
3
4
5
6
7
# File 'lib/generators/templates/rpush_3_2_0_add_apns_p8.rb', line 2

def self.up
  add_column :rpush_apps, :apn_key, :string, null: true
  add_column :rpush_apps, :apn_key_id, :string, null: true
  add_column :rpush_apps, :team_id, :string, null: true
  add_column :rpush_apps, :bundle_id, :string, null: true
end