app/models/katello/pool.rb in katello-3.7.0.rc1 vs app/models/katello/pool.rb in katello-3.7.0.rc2
- old
+ new
@@ -10,10 +10,11 @@
has_many :activation_keys, :through => :pool_activation_keys, :class_name => "Katello::ActivationKey"
has_many :subscription_facet_pools, :class_name => "Katello::SubscriptionFacetPool", :dependent => :destroy
has_many :subscription_facets, :through => :subscription_facet_pools
- belongs_to :organization, :class_name => "Organization", :inverse_of => :pools
+ belongs_to :organization, :class_name => 'Organization', :inverse_of => :pools
+ belongs_to :hypervisor, :class_name => 'Host::Managed', :inverse_of => :hypervisor_pools
scope :in_organization, ->(org_id) { where(:organization_id => org_id) }
scope :for_activation_key, ->(ak) { joins(:activation_keys).where("#{Katello::ActivationKey.table_name}.id" => ak.id) }
include Glue::Candlepin::Pool