2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/generators/rails-push-notifications/templates/migrations/create_rails_push_notifications_apps.rb', line 2
def self.up
create_table :rails_push_notifications_apns_apps do |t|
t.text :apns_dev_cert
t.text :apns_prod_cert
t.boolean :sandbox_mode, deafult: true
t.timestamps null: false
end
create_table :rails_push_notifications_gcm_apps do |t|
t.string :gcm_key
t.timestamps null: false
end
create_table :rails_push_notifications_mpns_apps do |t|
t.text :cert
t.timestamps null: false
end
create_table :rails_push_notifications_fcm_apps do |t|
t.string :fcm_key
t.timestamps null: false
end
end
|