Class: AddRpush::CreateRapnsApps

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/templates/add_rpush.rb

Class Method Summary collapse

Class Method Details

.downObject


127
128
129
# File 'lib/generators/templates/add_rpush.rb', line 127

def self.down
  drop_table :rapns_apps
end

.upObject


116
117
118
119
120
121
122
123
124
125
# File 'lib/generators/templates/add_rpush.rb', line 116

def self.up
  create_table :rapns_apps do |t|
    t.string    :key,             null: false
    t.string    :environment,     null: false
    t.text      :certificate,     null: false
    t.string    :password,        null: true
    t.integer   :connections,     null: false, default: 1
    t.timestamps
  end
end