Ignore unused column spree_stock_locations.backorderable_default

This commit is contained in:
Maikel Linke
2024-10-02 15:16:05 +10:00
parent ac3730096f
commit 4d9f396f40

View File

@@ -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