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-mpns-nverinaud-0.6.0 spec/support/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-gcm-spacialdb-0.7.0 spec/support/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-mpns-nverinaud-0.5.0 spec/support/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-gcm-spacialdb-0.5.0 spec/support/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-apns-grocer-0.7.0 spec/support/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-apns-grocer-0.6.0 spec/support/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.15.2 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.15.1 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.15.0 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.14.1 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.14.0 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.13.0 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.12.1 lib/generators/notifiable/install/templates/create_notifiable_device_tokens.rb
notifiable-rails-0.12.1 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-gcm-spacialdb-0.4.4 spec/support/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-apns-grocer-0.5.0 spec/support/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.12.0 lib/generators/notifiable/install/templates/create_notifiable_device_tokens.rb
notifiable-rails-0.12.0 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.11.0 lib/generators/notifiable/install/templates/create_notifiable_device_tokens.rb
notifiable-rails-0.11.0 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb