Added customer composite key

This commit is contained in:
Nedim
2025-02-27 07:45:54 +01:00
parent a28cdc6a6d
commit 92a61159ca
35 changed files with 1776 additions and 115 deletions

View File

@@ -36,6 +36,8 @@ en:
customer_updated: "Customer was successfully updated."
destroy:
customer_destroyed: "Customer was successfully destroyed."
customer:
already_exists: "This customer already exists in this company"
reservations:
create:
reservation_created: "Reservation was successfully created."

View File

@@ -1,7 +1,9 @@
Rails.application.routes.draw do
root "reservations#index"
resources :customers, param: :composite_key do
get :search, on: :collection
end
resources :reservations
resources :customers
resources :teams
resources :companies
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html