Class: CreateApnDevices
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateApnDevices
- Defined in:
- lib/generators/apn_on_rails/install/templates/001_create_apn_devices.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.down ⇒ Object
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 |
.up ⇒ Object
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. end end |