Sha256: 225eef9318ef7e900eb4fddb48df4b0c916ffd3e697d1207d399de21baa27206
Contents?: true
Size: 527 Bytes
Versions: 18
Compression:
Stored size: 527 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
18 entries across 18 versions & 2 rubygems