Sha256: dac63525ac378768dda3694c8a0ee882961141a8115e331cbc064e9207fd5062
Contents?: true
Size: 742 Bytes
Versions: 26
Compression:
Stored size: 742 Bytes
Contents
class AddAdm < ActiveRecord::Migration module Rapns class Notification < ActiveRecord::Base self.table_name = 'rapns_notifications' end end def self.up add_column :rapns_apps, :client_id, :string, null: true add_column :rapns_apps, :client_secret, :string, null: true add_column :rapns_apps, :access_token, :string, null: true add_column :rapns_apps, :access_token_expiration, :datetime, null: true end def self.down AddAdm::Rapns::Notification.where(type: 'Rapns::Adm::Notification').delete_all remove_column :rapns_apps, :client_id remove_column :rapns_apps, :client_secret remove_column :rapns_apps, :access_token remove_column :rapns_apps, :access_token_expiration end end
Version data entries
26 entries across 26 versions & 1 rubygems