Define and seed an invitation model and controller #224

Merged
bustikiller merged 12 commits from invitations into main 2025-06-01 18:36:50 +00:00
Showing only changes of commit 6100ce0b99 - Show all commits

View File

@ -1,7 +1,7 @@
class FixCascadingWeddingDeletion < ActiveRecord::Migration[8.0]
def change
[:expenses, :groups, :guests, :seats, :tables_arrangements, :users].each do |table|
remove_foreign_key table, column: :wedding_id
remove_foreign_key table, :weddings, column: :wedding_id
add_foreign_key table, :weddings, on_delete: :cascade
end
end