Sha256: edc9b283c4e1c6cf25c6544cd5533d2f31be908a60404bf4afe53cbded132847

Contents?: true

Size: 344 Bytes

Versions: 5

Compression:

Stored size: 344 Bytes

Contents

class CreateIospnDevices < ActiveRecord::Migration
  def self.up
    create_table :iospn_devices do |t|
      t.text :token, :length => 100, :null => false
      t.datetime :last_registered_at
      t.timestamps
    end
     add_index :iospn_devices, :token, :unique => true
  end

  def self.down
    drop_table :iospn_devices
  end
end



   

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ios_push_notifications-1.0 lib/generators/templates/device_migration.rb
ios_push_notifications-0.9 lib/generators/templates/device_migration.rb
ios_push_notifications-0.7 lib/generators/templates/device_migration.rb
ios_push_notifications-0.6 lib/generators/templates/device_migration.rb
ios_push_notifications-0.5 lib/generators/templates/device_migration.rb