Fix invoices dependent relationship

This commit is contained in:
Neal Chambers
2023-09-19 09:10:06 +09:00
parent d295a3bdae
commit e49489cd1c

View File

@@ -71,7 +71,7 @@ module Spree
},
class_name: 'Spree::Adjustment',
dependent: :destroy
has_many :invoices, dependent: :destroy
has_many :invoices, dependent: :restrict_with_exception
belongs_to :order_cycle
belongs_to :distributor, class_name: 'Enterprise'