Sha256: b43d22489cb6caa28a8eccdc9412c16636513f93f0a65a59cf22c7f4a65ac0d9

Contents?: true

Size: 450 Bytes

Versions: 18

Compression:

Stored size: 450 Bytes

Contents

class CreateNotifiableDeviceTokens < ActiveRecord::Migration
  
  def change
    create_table :notifiable_device_tokens do |t|
      t.string :token
    	t.string :provider
      t.string :locale
      t.boolean :is_valid, :default => true
      t.integer :user_id
      t.references :app

      t.timestamps
    end

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

end

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
notifiable-rails-0.24.3 db/migrate/20131210115649_create_notifiable_device_tokens.rb
notifiable-rails-0.24.2 db/migrate/20131210115649_create_notifiable_device_tokens.rb
notifiable-gcm-spacialdb-0.9.0 spec/support/db/migrate/20131210115649_create_notifiable_device_tokens.rb
notifiable-apns-grocer-0.13.1 spec/support/db/migrate/20131210115649_create_notifiable_device_tokens.rb
notifiable-rails-0.24.1 db/migrate/20131210115649_create_notifiable_device_tokens.rb
notifiable-rails-0.24.0 db/migrate/20131210115649_create_notifiable_device_tokens.rb
notifiable-rails-0.23.0 db/migrate/20131210115649_create_notifiable_device_tokens.rb
notifiable-apns-grocer-0.12.2 spec/support/db/migrate/20131210115649_create_notifiable_device_tokens.rb
notifiable-apns-grocer-0.12.1 spec/support/db/migrate/20131210115649_create_notifiable_device_tokens.rb
notifiable-apns-grocer-0.12.0 spec/support/db/migrate/20131210115649_create_notifiable_device_tokens.rb
notifiable-rails-0.22.1 db/migrate/20131210115649_create_notifiable_device_tokens.rb
notifiable-rails-0.22.0 db/migrate/20131210115649_create_notifiable_device_tokens.rb
notifiable-rails-0.21.3 db/migrate/20131210115649_create_notifiable_device_tokens.rb
notifiable-rails-0.21.2 db/migrate/20131210115649_create_notifiable_device_tokens.rb
notifiable-gcm-spacialdb-0.8.0 spec/support/db/migrate/20131210115649_create_notifiable_device_tokens.rb
notifiable-rails-0.21.1 db/migrate/20131210115649_create_notifiable_device_tokens.rb
notifiable-apns-grocer-0.11.0 spec/support/db/migrate/20131210115649_create_notifiable_device_tokens.rb
notifiable-rails-0.21.0 db/migrate/20131210115649_create_notifiable_device_tokens.rb