Arrange classes loading for good migration

This commit is contained in:
François Turbelin
2022-02-02 21:45:11 +01:00
committed by Maikel Linke
parent d016c47789
commit 9682b9256b

View File

@@ -1,9 +1,9 @@
require 'concerns/address_display'
require 'spree/address'
class SplitCustomersName < ActiveRecord::Migration[6.1]
class Spree::DummyAddress < ApplicationRecord
self.table_name = 'spree_addresses'
end
class Customer < ApplicationRecord
belongs_to :bill_address, class_name: "Spree::Address"
belongs_to :bill_address, class_name: "Spree::DummyAddress"
end
def up