From fbd60c21d153720c57e39db99414ef8b73afdc72 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Tue, 23 Jan 2018 15:25:32 -0500 Subject: [PATCH] Don't dependent => destroy child_managers --- app/models/manageiq/providers/amazon/cloud_manager.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/models/manageiq/providers/amazon/cloud_manager.rb b/app/models/manageiq/providers/amazon/cloud_manager.rb index 57b87e260..130f5db57 100644 --- a/app/models/manageiq/providers/amazon/cloud_manager.rb +++ b/app/models/manageiq/providers/amazon/cloud_manager.rb @@ -24,14 +24,12 @@ class ManageIQ::Providers::Amazon::CloudManager < ManageIQ::Providers::CloudMana has_one :network_manager, :foreign_key => :parent_ems_id, :class_name => "ManageIQ::Providers::Amazon::NetworkManager", - :autosave => true, - :dependent => :destroy + :autosave => true has_many :storage_managers, :foreign_key => :parent_ems_id, :class_name => "ManageIQ::Providers::StorageManager", - :autosave => true, - :dependent => :destroy + :autosave => true delegate :floating_ips, :security_groups,