class CreateRailsPushNotificationsApps
Public Class Methods
up()
click to toggle source
# 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