mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 17:51:39 -05:00
6 lines
164 B
Ruby
6 lines
164 B
Ruby
class Device < ApplicationRecord
|
|
belongs_to :user
|
|
|
|
validates :name, presence: true
|
|
validates :identifier, presence: true, uniqueness: { scope: :user_id }
|
|
end
|