Files
sure/app/models/family_merchant_association.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

7 lines
198 B
Ruby

class FamilyMerchantAssociation < ApplicationRecord
belongs_to :family
belongs_to :merchant
scope :recently_unlinked, -> { where(unlinked_at: 30.days.ago..).where.not(unlinked_at: nil) }
end