From 4d9f396f401e427a6db52e1a05cf3f5989032724 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 2 Oct 2024 15:16:05 +1000 Subject: [PATCH] Ignore unused column spree_stock_locations.backorderable_default --- app/models/spree/stock_location.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/spree/stock_location.rb b/app/models/spree/stock_location.rb index 73fe4dc9d7..7b71a099e5 100644 --- a/app/models/spree/stock_location.rb +++ b/app/models/spree/stock_location.rb @@ -3,6 +3,7 @@ module Spree class StockLocation < ApplicationRecord self.belongs_to_required_by_default = false + self.ignored_columns += [:backorderable_default] has_many :stock_items, dependent: :delete_all, inverse_of: :stock_location has_many :stock_movements, through: :stock_items