Skip to content

Commit

Permalink
Don't dependent => destroy child_managers
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Jan 23, 2018
1 parent 9d67aaf commit fbd60c2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/models/manageiq/providers/amazon/cloud_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fbd60c2

Please sign in to comment.