Files
openfoodnetwork/app/models/semantic_link.rb
Maikel Linke d47d3eba8f Add SemanticLink model for variants
We want to link variants/products to external DFC SuppliedProducts to
trigger supplier orders when local stock is exhausted. This is the first
step to enable the link.
2024-03-15 16:46:41 +11:00

9 lines
228 B
Ruby

# frozen_string_literal: true
# Link a Spree::Variant to an external DFC SuppliedProduct.
class SemanticLink < ApplicationRecord
belongs_to :variant, class_name: "Spree::Variant"
validates :semantic_id, presence: true
end