mirror of
https://github.com/usetrmnl/terminus.git
synced 2026-08-13 14:29:27 -07:00
Necessary to define the database relation that'll soon be used by the repository. Milestone: minor
13 lines
273 B
Ruby
13 lines
273 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Terminus
|
|
module Relations
|
|
# The device sensor relation.
|
|
class DeviceSensor < DB::Relation
|
|
schema :device_sensor, infer: true do
|
|
associations { belongs_to :device, relation: :device }
|
|
end
|
|
end
|
|
end
|
|
end
|