Sha256: 83e5bcae17547cff3e8b766a5cdee4283a119e5be6e0bca716e521b09f08ae9b

Contents?: true

Size: 343 Bytes

Versions: 8

Compression:

Stored size: 343 Bytes

Contents

class CreateJeraPushDevices < ActiveRecord::Migration
  def change
    create_table :jera_push_devices do |t|
      t.string :token, index: true
      t.string :platform, index: true
      t.integer :resource_id, index: true

      t.timestamps null: false
    end
    add_index :jera_push_devices, [:token, :platform], unique: true
  end
end

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
jera_push-1.0.3 lib/generators/active_record/templates/create_jera_push_devices.rb
jera_push-1.0.3 test/dummy/db/migrate/20161123200419_create_jera_push_devices.rb
jera_push-1.0.2 lib/generators/active_record/templates/create_jera_push_devices.rb
jera_push-1.0.2 test/dummy/db/migrate/20161123200419_create_jera_push_devices.rb
jera_push-1.0.1.1 lib/generators/active_record/templates/create_jera_push_devices.rb
jera_push-1.0.1.1 test/dummy/db/migrate/20161123200419_create_jera_push_devices.rb
jera_push-1.0.1 lib/generators/active_record/templates/create_jera_push_devices.rb
jera_push-1.0.1 test/dummy/db/migrate/20161123200419_create_jera_push_devices.rb