Files
sure/db/migrate/20260109144012_create_family_merchant_associations.rb
soky srm 76dc91377c Merchants improvements (#594)
* FIX logos

* Implement merchant mods

* FIX confirm issue

* FIX linter

* Add recently seen merchants to re-add if needed

* Update merge.html.erb

* FIX do security check

* Add error handling for update failures.
2026-01-09 19:38:04 +01:00

14 lines
451 B
Ruby

class CreateFamilyMerchantAssociations < ActiveRecord::Migration[7.2]
def change
create_table :family_merchant_associations, id: :uuid do |t|
t.references :family, null: false, foreign_key: true, type: :uuid
t.references :merchant, null: false, foreign_key: true, type: :uuid
t.datetime :unlinked_at
t.timestamps
end
add_index :family_merchant_associations, [ :family_id, :merchant_id ], unique: true
end
end