Sha256: 5cedf994afb211d4f1145cf2f461a5df060788200ab36b49c6d5ed4b407aacde

Contents?: true

Size: 489 Bytes

Versions: 7

Compression:

Stored size: 489 Bytes

Contents

class J7W1ApplicationDevices < ActiveRecord::Migration
  def change
    create_table :j7w1_application_devices do |t|
      t.string  :owner_type,          null: false
      t.integer :owner_id,            null: false
      t.string  :device_identifier,   null: false
      t.string  :platform,            null: false
      t.string  :device_endpoint_arn, null: true

      t.index   [:owner_type, :owner_id]
      t.index   [:device_identifier, :platform], unique: true
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
j7w1-0.0.11 lib/generators/j7_w1/migration/templates/active_record/migration.rb
j7w1-0.0.10 lib/generators/j7_w1/migration/templates/active_record/migration.rb
j7w1-0.0.9 lib/generators/j7_w1/migration/templates/active_record/migration.rb
j7w1-0.0.8 lib/generators/j7_w1/migration/templates/active_record/migration.rb
j7w1-0.0.7 lib/generators/j7_w1/migration/templates/active_record/migration.rb
j7w1-0.0.6 lib/generators/j7_w1/migration/templates/active_record/migration.rb
j7w1-0.0.5 lib/generators/j7_w1/migration/templates/active_record/migration.rb