require_relative '../booking' module Tickethub class Supplier::Booking::Ticket < Supplier::Booking polymorphic 'ticket' require_relative '../ticket' collection :tickets, Supplier::Ticket attribute :valid_from, type: :datetime end end