1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/db/migrate/20230509161557_create_booking_users.rb

16 lines
384 B
Ruby
Raw Normal View History

2023-05-09 18:54:16 +02:00
# 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