Calendar is shown

This commit is contained in:
2024-08-24 07:06:09 +02:00
parent e0d9d3a6b9
commit dfaf7dc870
20 changed files with 129 additions and 94 deletions

View File

@@ -1,9 +1,9 @@
class Reservation < ApplicationRecord
belongs_to :company
belongs_to :customer
belongs_to :place
belongs_to :team
validates :company_id, presence: true
validates :customer_id, presence: true
validates :place_id, presence: true
validates :team_id, presence: true
end

View File

@@ -1,2 +1,7 @@
class Team < ApplicationRecord
belongs_to :company
has_many :reservations, dependent: :destroy
validates :name, presence: true
validates :company_id, presence: true
end