1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-28 09:24:24 +01:00
fab-manager/db/migrate/20230509161557_create_booking_users.rb
2023-07-04 14:57:42 +02:00

16 lines
384 B
Ruby

# frozen_string_literal: true
# create booking_users table
class CreateBookingUsers < ActiveRecord::Migration[7.0]
def change
create_table :booking_users do |t|
t.string :name
t.belongs_to :reservation, foreign_key: true
t.references :booked, polymorphic: true
t.references :event_price_category, foreign_key: true
t.timestamps
end
end
end