Class: CreateApnDevices

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/apn_on_rails/install/templates/001_create_apn_devices.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.downObject



10
11
12
# File 'lib/generators/apn_on_rails/install/templates/001_create_apn_devices.rb', line 10

def self.down
  drop_table :apn_devices
end

.upObject



2
3
4
5
6
7
8
# File 'lib/generators/apn_on_rails/install/templates/001_create_apn_devices.rb', line 2

def self.up
  create_table :apn_devices do |t|
    t.text :token, :size => 71, :null => false

    t.timestamps
  end
end