Class: CreateRapnsApps
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateRapnsApps
- Defined in:
- lib/generators/templates/create_rapns_apps.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
13 14 15 |
# File 'lib/generators/templates/create_rapns_apps.rb', line 13 def self.down drop_table :rapns_apps end |
.up ⇒ Object
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. end end |