Class: TicketBundle

Inherits:
ApplicationRecord show all
Defined in:
app/models/ticket_bundle.rb

Overview

Schema Information

Table name: ticket_bundles

id                        :bigint           not null, primary key
booked_quantity           :text(65535)
description               :text(65535)
discount_percent          :integer
name                      :string(191)
price_per_ticket_cents    :integer          default(0), not null
price_per_ticket_currency :string(191)      default("THB"), not null
quantity                  :integer
total_price_cents         :integer          default(0), not null
total_price_currency      :string(191)      default("THB"), not null
created_at                :datetime         not null
updated_at                :datetime         not null
package_type_id           :bigint
ticket_bundle_id          :bigint           not null
ticket_group_bundle_id    :bigint
ticket_group_id           :bigint
ticket_transaction_id     :bigint

Indexes

index_ticket_bundles_on_package_type_id         (package_type_id)
index_ticket_bundles_on_ticket_group_bundle_id  (ticket_group_bundle_id)
index_ticket_bundles_on_ticket_group_id         (ticket_group_id)
index_ticket_bundles_on_ticket_transaction_id   (ticket_transaction_id)

Method Summary

Methods inherited from ApplicationRecord

sync_carrierwave_url