Skip to content

Commit

Permalink
Add an association for Datacenters
Browse files Browse the repository at this point in the history
Datacenters are a subclass of EmsFolder but have their own inventory
collection.  This will allow us use the standard association attribute
for an inventory_collection rather than having to define a custom arel
like Ovirt does today.
  • Loading branch information
agrare committed Aug 8, 2018
1 parent 8a79376 commit 516ed3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/ext_management_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 516ed3c

Please sign in to comment.