Sha256: 7a404b62df48c92c201e654135248b285b109804ee4e6545ec2daaa681e3f9d5

Contents?: true

Size: 375 Bytes

Versions: 4

Compression:

Stored size: 375 Bytes

Contents

class CreateJeraPushDevices < ActiveRecord::Migration<%= migration_version %>
  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
    end

    add_index :jera_push_devices, [:token, :platform], unique: true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jera_push-2.1.4 lib/generators/active_record/templates/create_jera_push_devices.rb
jera_push-2.1.3 lib/generators/active_record/templates/create_jera_push_devices.rb
jera_push-2.1.2 lib/generators/active_record/templates/create_jera_push_devices.rb
jera_push-2.0.0 lib/generators/active_record/templates/create_jera_push_devices.rb