mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-10 23:07:47 +00:00
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.
13 lines
305 B
Ruby
13 lines
305 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateSemanticLinks < ActiveRecord::Migration[7.0]
|
|
def change
|
|
create_table :semantic_links do |t|
|
|
t.references :variant, null: false, foreign_key: { to_table: :spree_variants }
|
|
t.string :semantic_id, null: false
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|