Sha256: 035169e3d5bbbf33ff2359dd733e0cb4a0d5bd373d2a294097557d4c9a625ad4

Contents?: true

Size: 367 Bytes

Versions: 8

Compression:

Stored size: 367 Bytes

Contents

class CreateJeraPushDevices < ActiveRecord::Migration[5.2]
  def change
    create_table :jera_push_devices do |t|
      t.string :token, index: true
      t.string :platform, index: true
      t.references :pushable, polymorphic: true, index: true

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jera_push-1.1.7 lib/generators/active_record/templates/create_jera_push_devices.rb
jera_push-1.1.6 lib/generators/active_record/templates/create_jera_push_devices.rb
jera_push-1.1.5 lib/generators/active_record/templates/create_jera_push_devices.rb
jera_push-1.1.4 lib/generators/active_record/templates/create_jera_push_devices.rb
jera_push-1.1.3 lib/generators/active_record/templates/create_jera_push_devices.rb
jera_push-1.1.2 lib/generators/active_record/templates/create_jera_push_devices.rb
jera_push-1.1.1 lib/generators/active_record/templates/create_jera_push_devices.rb
jera_push-1.1.0 lib/generators/active_record/templates/create_jera_push_devices.rb