Class: InventoryTakeAwayReservation
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- InventoryTakeAwayReservation
- Defined in:
- app/models/inventory_take_away_reservation.rb
Overview
Schema Information
Table name: inventory_take_away_reservations
id :bigint not null, primary key
booked_seat :integer default(0)
created_at :datetime not null
updated_at :datetime not null
inventory_take_away_id :bigint
reservation_id :integer
Indexes
index_inventory_take_away_reservations_on_inventory_take_away_id (inventory_take_away_id)
index_inventory_take_away_reservations_on_reservation_id (reservation_id)
uniq_inv_reservation (inventory_take_away_id,reservation_id) UNIQUE
Foreign Keys
fk_rails_... (inventory_take_away_id => inventory_take_aways.id)
fk_rails_... (reservation_id => reservations.id)
Class Method Summary collapse
Methods inherited from ApplicationRecord
Class Method Details
.inventory_id_column ⇒ Object
27 28 29 |
# File 'app/models/inventory_take_away_reservation.rb', line 27 def self.inventory_id_column :inventory_take_away_id end |