Sha256: 6524f566dc15404843f58ba6d751b60f111d6388aabebf11df6e2a85dbf07b68

Contents?: true

Size: 405 Bytes

Versions: 13

Compression:

Stored size: 405 Bytes

Contents

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

      t.timestamps
    end

    add_index :notifiable_device_tokens, :token 
    add_index :notifiable_device_tokens, :user_id
  end

end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
notifiable-rails-0.19.9 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-apns-grocer-0.10.0 spec/support/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-apns-grocer-0.9.2 spec/support/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-apns-grocer-0.9.1 spec/support/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.19.7 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.19.6 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.19.5 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.19.4 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.19.3 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.19.2 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.19.1 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-apns-grocer-0.9.0 spec/support/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.19.0 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb