Sha256: 87adf7e950cfe7bb2552901f028157340f08c7a93fafda407874837ccfa06232
Contents?: true
Size: 456 Bytes
Versions: 7
Compression:
Stored size: 456 Bytes
Contents
# frozen_string_literal: true ActiveRecord::Schema.define do create_table :alarms, force: true do |t| t.column :device_id, :integer, null: false t.column :alarm_type, :integer, null: false t.column :status, :integer, null: false t.column :metadata, :text t.column :secret_key, :binary t.datetime :created_at t.datetime :updated_at end add_index :alarms, [:device_id, :alarm_type], unique: true, where: 'status <> 0' end
Version data entries
7 entries across 7 versions & 1 rubygems