poder obtener todos los sensores de una lectura
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
455a00ecc0
commit
212524429f
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
class Reading < ApplicationRecord
|
class Reading < ApplicationRecord
|
||||||
belongs_to :raspberry
|
belongs_to :raspberry
|
||||||
has_many :arduinos
|
has_many :arduinos
|
||||||
|
has_many :sensors, through: :arduinos
|
||||||
|
|
||||||
# @param :public_key [SSHData::PublicKey]
|
# @param :public_key [SSHData::PublicKey]
|
||||||
def verify(public_key)
|
def verify(public_key)
|
||||||
|
|
Loading…
Reference in a new issue