lib/generators/templates/create_rapns_apps.rb

Summary

Maintainability
A
50 mins
Test Coverage
class CreateRapnsApps < ActiveRecord::Migration[5.0]
  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

  def self.down
    drop_table :rapns_apps
  end
end