From 786fe55fc86e98798c8695e8ffbcb75d0f0bd642 Mon Sep 17 00:00:00 2001 From: georgethoppil Date: Mon, 27 Jun 2022 16:42:52 -0400 Subject: [PATCH] Removing dependent destroy on order --- app/models/proxy_order.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/proxy_order.rb b/app/models/proxy_order.rb index b258208e4d..587e918772 100644 --- a/app/models/proxy_order.rb +++ b/app/models/proxy_order.rb @@ -5,7 +5,7 @@ # This reduces the need to keep Orders in sync with their parent Subscriptions class ProxyOrder < ApplicationRecord - belongs_to :order, class_name: 'Spree::Order', dependent: :destroy + belongs_to :order, class_name: 'Spree::Order' belongs_to :subscription belongs_to :order_cycle