Skip to content

Commit

Permalink
Add all columns moved to variant to ignored_columns
Browse files Browse the repository at this point in the history
  • Loading branch information
rioug committed Aug 19, 2024
1 parent 163d423 commit 07c2b4e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/models/spree/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ class Product < ApplicationRecord
include LogDestroyPerformer

self.belongs_to_required_by_default = false
self.ignored_columns += [:supplier_id, :variant_unit_scale, :variant_unit_name]
# These columns have been moved to variant. Currently this is only for documentation purposes,
# because they are declared as attr_accessor below, declaring them as ignored columns has no
# effect
self.ignored_columns += [
:supplier_id, :primary_taxon_id, :variant_unit, :variant_unit_scale, :variant_unit_name
]

acts_as_paranoid

Expand Down

0 comments on commit 07c2b4e

Please sign in to comment.