8 lines
250 B
Ruby
8 lines
250 B
Ruby
|
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
|