Sha256: 7582279705d8d7f37652ea7635498de9da54fb358a6c1e357f934cf0b3c763b7

Contents?: true

Size: 480 Bytes

Versions: 2

Compression:

Stored size: 480 Bytes

Contents

class CreateNotifiableDeviceTokens < ActiveRecord::Migration
  
  def change
    create_table :notifiable_device_tokens do |t|
      t.string :token
    	t.string :provider
      t.string :device_id
      t.integer :user_id
      t.references :app

      t.timestamps
    end

    add_index :notifiable_device_tokens, :device_id, :unique => true  
    add_index :notifiable_device_tokens, :token, :unique => true      
    add_index :notifiable_device_tokens, :user_id
  end

end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
notifiable-gcm-spacialdb-0.6.0 spec/support/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-apns-grocer-0.8.0 spec/support/db/migrate/20131228225139_create_notifiable_device_tokens.rb