mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
11 lines
282 B
Ruby
11 lines
282 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Visit < ApplicationRecord
|
|
belongs_to :area
|
|
belongs_to :user
|
|
has_many :points, dependent: :nullify
|
|
|
|
validates :started_at, :ended_at, :duration, :name, :status, presence: true
|
|
|
|
enum status: { pending: 0, confirmed: 1, declined: 2 }
|
|
end
|