Rezervacije

This commit is contained in:
2024-08-06 14:16:40 +02:00
parent 8d5a410c60
commit 6d5509856f
58 changed files with 1052 additions and 3 deletions

7
app/models/customer.rb Normal file
View File

@@ -0,0 +1,7 @@
class Customer < ApplicationRecord
belongs_to :company
validates :name, presence: true, uniqueness: { scope: :company_id }
validates :phone, presence: true
validates :company_id, presence: true
end