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

Version Path
activerecord-import-2.0.0 test/schema/sqlite3_schema.rb
activerecord-import-1.8.1 test/schema/sqlite3_schema.rb
activerecord-import-1.8.0 test/schema/sqlite3_schema.rb
activerecord-import-1.6.0 test/schema/sqlite3_schema.rb
activerecord-import-1.5.1 test/schema/sqlite3_schema.rb
activerecord-import-1.5.0 test/schema/sqlite3_schema.rb
activerecord-import-1.4.1 test/schema/sqlite3_schema.rb