2025-01-13 20:38:47 +00:00
|
|
|
# Copyright (C) 2024 Manuel Bustillo
|
|
|
|
|
2025-01-13 21:37:02 +01:00
|
|
|
# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
|
2024-11-30 19:07:36 +00:00
|
|
|
|
2024-11-30 20:04:17 +01:00
|
|
|
class AddWeddingIdToModels < ActiveRecord::Migration[8.0]
|
|
|
|
def change
|
2024-11-30 21:06:21 +01:00
|
|
|
[:expenses, :guests, :seats, :tables_arrangements, :groups, :users].each do |table|
|
2024-11-30 20:04:17 +01:00
|
|
|
add_reference table, :wedding, type: :uuid, null: false, foreign_key: true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|