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