Sha256: 846876b3f0ebe31d2d6233206a86ef5ed21b17c49d0d9450198f6ffa03c6e601

Contents?: true

Size: 524 Bytes

Versions: 28

Compression:

Stored size: 524 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.boolean :is_valid, :default => true
      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

28 entries across 21 versions & 4 rubygems

Version Path
notifiable-rails-0.10.1 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.10.1 lib/generators/notifiable/install/templates/create_notifiable_device_tokens.rb
notifiable-rails-0.10.0 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.10.0 lib/generators/notifiable/install/templates/create_notifiable_device_tokens.rb
notifiable-rails-0.9.0 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.9.0 lib/generators/notifiable/install/templates/create_notifiable_device_tokens.rb
notifiable-rails-0.8.0 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.8.0 lib/generators/notifiable/install/templates/create_notifiable_device_tokens.rb