EPHEC-Enovatech/sensorygarden-api

View on GitHub
app/models/device.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Device < ApplicationRecord
    has_many :data_records, dependent: :destroy
    has_many :sensors, through: :data_records

    validates :deviceName, presence: true
end