diff --git a/app/models/ext_management_system.rb b/app/models/ext_management_system.rb index 746a9cf5a2f..8caab97c584 100644 --- a/app/models/ext_management_system.rb +++ b/app/models/ext_management_system.rb @@ -61,6 +61,7 @@ def self.api_allowed_attributes has_many :blacklisted_events, :foreign_key => "ems_id", :dependent => :destroy, :inverse_of => :ext_management_system has_many :miq_alert_statuses, :foreign_key => "ems_id", :dependent => :destroy has_many :ems_folders, :foreign_key => "ems_id", :dependent => :destroy, :inverse_of => :ext_management_system + has_many :datacenters, :foreign_key => "ems_id", :class_name => "Datacenter", :inverse_of => :ext_management_system has_many :ems_clusters, :foreign_key => "ems_id", :dependent => :destroy, :inverse_of => :ext_management_system has_many :resource_pools, :foreign_key => "ems_id", :dependent => :destroy, :inverse_of => :ext_management_system has_many :customization_specs, :foreign_key => "ems_id", :dependent => :destroy, :inverse_of => :ext_management_system