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.
This commit is contained in:
Maikel Linke
2025-01-22 12:09:17 +11:00
parent 64608beaa8
commit a2459a3742

View File

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