fixup! los sensores tienen lecturas
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
d16947d1ba
commit
1f8f75d749
1 changed files with 1 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
class Sensor < ApplicationRecord
|
class Sensor < ApplicationRecord
|
||||||
belongs_to :arduino
|
belongs_to :arduino
|
||||||
|
belongs_to :reading
|
||||||
|
|
||||||
validates_presence_of :local_type, :value, :unit
|
validates_presence_of :local_type, :value, :unit
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue