2022-12-28 17:51:27 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-01-11 17:32:16 +01:00
|
|
|
require_relative 'cart_item'
|
|
|
|
|
2022-12-28 17:51:27 +01:00
|
|
|
# A relation table between a pending event reservation and a special price for this event
|
|
|
|
class CartItem::EventReservationTicket < ApplicationRecord
|
2023-02-03 12:49:17 +01:00
|
|
|
self.table_name = 'cart_item_event_reservation_tickets'
|
|
|
|
|
2022-12-28 17:51:27 +01:00
|
|
|
belongs_to :cart_item_event_reservation, class_name: 'CartItem::EventReservation', inverse_of: :cart_item_event_reservation_tickets
|
|
|
|
belongs_to :event_price_category, inverse_of: :cart_item_event_reservation_tickets
|
|
|
|
end
|