2021-07-19 21:43:20 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-07-19 14:56:49 +00:00
|
|
|
class Sensor < ApplicationRecord
|
2021-12-06 23:00:04 +00:00
|
|
|
belongs_to :arduino
|
2022-06-11 17:50:12 +00:00
|
|
|
belongs_to :reading
|
2022-03-03 17:47:26 +00:00
|
|
|
|
2022-03-09 18:01:18 +00:00
|
|
|
validates_presence_of :local_type, :value, :unit
|
2021-07-19 14:56:49 +00:00
|
|
|
end
|