mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-21 05:09:15 +00:00
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.
7 lines
191 B
Ruby
7 lines
191 B
Ruby
# frozen_string_literal: true
|
|
|
|
class VariantLink < ApplicationRecord
|
|
belongs_to :source_variant, class_name: 'Spree::Variant'
|
|
belongs_to :target_variant, class_name: 'Spree::Variant'
|
|
end
|