1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/db/migrate/20221228152747_create_cart_item_event_reservation_ticket.rb
2023-02-15 10:29:46 +01:00

15 lines
601 B
Ruby

# frozen_string_literal: true
# A relation table between a pending event reservation and a special price for this event
class CreateCartItemEventReservationTicket < ActiveRecord::Migration[5.2]
def change
create_table :cart_item_event_reservation_tickets do |t|
t.integer :booked
t.references :event_price_category, foreign_key: true, index: { name: 'index_cart_item_tickets_on_event_price_category' }
t.references :cart_item_event_reservation, foreign_key: true, index: { name: 'index_cart_item_tickets_on_cart_item_event_reservation' }
t.timestamps
end
end
end