mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-11 22:24:21 +01:00
11 lines
521 B
Ruby
11 lines
521 B
Ruby
# frozen_string_literal: true
|
|
|
|
# A relation table between a pending event reservation and reservation users for this event
|
|
class CartItem::EventReservationBookingUser < ApplicationRecord
|
|
self.table_name = 'cart_item_event_reservation_booking_users'
|
|
|
|
belongs_to :cart_item_event_reservation, class_name: 'CartItem::EventReservation', inverse_of: :cart_item_event_reservation_booking_users
|
|
belongs_to :event_price_category, inverse_of: :cart_item_event_reservation_tickets
|
|
belongs_to :booked, polymorphic: true
|
|
end
|