From 05c31db46ada919589ccd3d187df64a85e860506 Mon Sep 17 00:00:00 2001 From: David Cook Date: Tue, 10 Mar 2026 14:14:17 +1100 Subject: [PATCH] Remove touch I think I was just following convention from existing relationships. Perhaps you could argue that a variant is affected by the links added/removed.. but we never look at updated_at so really there's no point at all. --- app/models/variant_link.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/variant_link.rb b/app/models/variant_link.rb index cedecb5c6d..0030b80a5a 100644 --- a/app/models/variant_link.rb +++ b/app/models/variant_link.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true class VariantLink < ApplicationRecord - belongs_to :source_variant, class_name: 'Spree::Variant', touch: true - belongs_to :target_variant, class_name: 'Spree::Variant', touch: true + belongs_to :source_variant, class_name: 'Spree::Variant' + belongs_to :target_variant, class_name: 'Spree::Variant' end