class AddWeddingIdToModels < ActiveRecord::Migration[8.0] def change [:expenses, :guests, :seats, :tables_arrangements, :groups].each do |table| add_reference table, :wedding, type: :uuid, null: false, foreign_key: true end end end