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

Version Path
rpush-2.7.0-java lib/generators/templates/add_adm.rb
rpush-2.7.0 lib/generators/templates/add_adm.rb
rpush-2.6.0-java lib/generators/templates/add_adm.rb
rpush-2.6.0 lib/generators/templates/add_adm.rb
rpush-2.5.0 lib/generators/templates/add_adm.rb
rpush-2.4.0-java lib/generators/templates/add_adm.rb
rpush-2.4.0 lib/generators/templates/add_adm.rb
rpush-2.3.2-java lib/generators/templates/add_adm.rb
rpush-2.3.2 lib/generators/templates/add_adm.rb
rpush-2.3.1-java lib/generators/templates/add_adm.rb
rpush-2.3.1 lib/generators/templates/add_adm.rb
rpush-2.3.0-java lib/generators/templates/add_adm.rb
rpush-2.3.0 lib/generators/templates/add_adm.rb
rpush-2.3.0.rc1 lib/generators/templates/add_adm.rb
rpush-2.2.0-java lib/generators/templates/add_adm.rb
rpush-2.2.0 lib/generators/templates/add_adm.rb
rpush-2.1.0-java lib/generators/templates/add_adm.rb
rpush-2.1.0 lib/generators/templates/add_adm.rb
rpush-2.0.1-java lib/generators/templates/add_adm.rb
rpush-2.0.1 lib/generators/templates/add_adm.rb