Class: AddRpush::CreateRapnsApps

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

Class Method Summary collapse

Class Method Details

.downObject



129
130
131
# File 'lib/generators/templates/add_rpush.rb', line 129

def self.down
  drop_table :rapns_apps
end

.upObject



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

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