openfoodfoundation/openfoodnetwork

View on GitHub
db/migrate/20230803191831_add_taxons_to_variants.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AddTaxonsToVariants < ActiveRecord::Migration[7.0]
  def change
    add_reference :spree_variants, :primary_taxon, foreign_key: { to_table: :spree_taxons }
  end
end