Sha256: 187870404c060f84897fe1bbbcabb2cc155f270dd9abd53e5b566abe07ce2ce8

Contents?: true

Size: 508 Bytes

Versions: 8

Compression:

Stored size: 508 Bytes

Contents

class CreateJeraPushMessagesDevices < ActiveRecord::Migration
  def change
    create_table :jera_push_messages_devices do |t|
      t.integer :device_id, index: true, foreign_key: true
      t.integer :message_id, index: true, foreign_key: true
      t.string :status
      t.string :error_message
      t.string :firebase_id

      t.timestamps null: false
    end

    add_index :jera_push_messages_devices, [:device_id, :message_id], unique: true, name: :jera_push_index_messages_id_devices_id
  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_messages_devices.rb
jera_push-1.0.3 test/dummy/db/migrate/20161123200421_create_jera_push_messages_devices.rb
jera_push-1.0.2 lib/generators/active_record/templates/create_jera_push_messages_devices.rb
jera_push-1.0.2 test/dummy/db/migrate/20161123200421_create_jera_push_messages_devices.rb
jera_push-1.0.1.1 lib/generators/active_record/templates/create_jera_push_messages_devices.rb
jera_push-1.0.1.1 test/dummy/db/migrate/20161123200421_create_jera_push_messages_devices.rb
jera_push-1.0.1 lib/generators/active_record/templates/create_jera_push_messages_devices.rb
jera_push-1.0.1 test/dummy/db/migrate/20161123200421_create_jera_push_messages_devices.rb