mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-13 23:48:55 +01:00
10 lines
288 B
Ruby
10 lines
288 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
# BookingUser is a class for save the booking info of reservation
|
||
|
# booked can be a User or a Child (polymorphic)
|
||
|
class BookingUser < ApplicationRecord
|
||
|
belongs_to :reservation
|
||
|
belongs_to :booked, polymorphic: true
|
||
|
belongs_to :event_price_category
|
||
|
end
|