Sha256: 15c8712eb9e4ecef04114ca840ee4f2d77cc71632068839b2a43738cdc88507f
Contents?: true
Size: 526 Bytes
Versions: 16
Compression:
Stored size: 526 Bytes
Contents
class CreateLocationBeacons < ActiveRecord::Migration def change create_table :location_beacons do |t| t.references :location t.references :company, null: false t.string :mac_address, limit: 12 t.string :uuid, null: false, limit: 32 t.integer :major, null: false t.integer :minor, null: false t.timestamps null: false end add_index :location_beacons, [:company_id,:uuid,:major,:minor], name: "index_location_beacons_unique_company_identifier", unique: true end end
Version data entries
16 entries across 16 versions & 1 rubygems