Class: CreateRapnsApps

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

Class Method Summary collapse

Class Method Details

.downObject



13
14
15
# File 'lib/generators/templates/create_rapns_apps.rb', line 13

def self.down
  drop_table :rapns_apps
end

.upObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/generators/templates/create_rapns_apps.rb', line 2

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