From a2459a374287e45c6be287e133d29324f3258f42 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 22 Jan 2025 12:09:17 +1100 Subject: [PATCH] Remove class Spree::StockLocation The database table is still there and can stay for a while until we are confident that nothing is broken in production. --- app/models/spree/stock_location.rb | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 app/models/spree/stock_location.rb diff --git a/app/models/spree/stock_location.rb b/app/models/spree/stock_location.rb deleted file mode 100644 index 9640ef474f..0000000000 --- a/app/models/spree/stock_location.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Spree - class StockLocation < ApplicationRecord - self.belongs_to_required_by_default = false - self.ignored_columns += [:backorderable_default, :active] - - belongs_to :state, class_name: 'Spree::State' - belongs_to :country, class_name: 'Spree::Country' - - validates :name, presence: true - end -end