Sha256: 6cb533ba433b488091fc16ade121bd5d6447a35ced41ab850becf4bbfeb5c7bd

Contents?: true

Size: 397 Bytes

Versions: 2

Compression:

Stored size: 397 Bytes

Contents

Sequel.migration do
  change do
    create_table(:device_locks) do
      primary_key :id
      String :worker_name, null: false
      foreign_key :device_id, :devices, null: false, unique: true

      DateTime :created
      DateTime :updated
      DateTime :expires

      index :device_id
      index :worker_name
      index :created
      index :updated
      index :expires
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
telemetry-snmp-0.3.0 lib/telemetry/snmp/data/migrations/011_device_locks.rb
telemetry-snmp-0.2.0 lib/telemetry/snmp/data/migrations/011_device_locks.rb