9 lines
164 B
Ruby
9 lines
164 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Sensor < ApplicationRecord
|
|
belongs_to :arduino
|
|
belongs_to :reading
|
|
|
|
validates_presence_of :local_type, :value, :unit
|
|
end
|