Sha256: 23e29a42fe5c9e220c1044c5640ee4a8b66e517b8312da098936a2e25984744d

Contents?: true

Size: 336 Bytes

Versions: 4

Compression:

Stored size: 336 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.timestamps
    end
    
    add_index :notifiable_device_tokens, :user_id
  end

end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
notifiable-rails-0.1.1 lib/generators/notifiable/install/templates/create_notifiable_device_tokens.rb
notifiable-rails-0.1.1 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb
notifiable-rails-0.1.0 lib/generators/notifiable/install/templates/create_notifiable_device_tokens.rb
notifiable-rails-0.1.0 spec/test_app/db/migrate/20131228225139_create_notifiable_device_tokens.rb