Sha256: 197e27cb156f36ddea831a826c11d967aa22a5914a51ea3a57208bf143d8c578

Contents?: true

Size: 287 Bytes

Versions: 37

Compression:

Stored size: 287 Bytes

Contents

class InsightsFacet < HostFacets::Base
  has_many :hits,
    foreign_key: :host_id,
    primary_key: :host_id,
    class_name: 'InsightsHit',
    dependent: :destroy
  scope :for_organizations, ->(organization_ids) { joins(:host).where(hosts: { organization_id: organization_ids}) }
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
foreman_rh_cloud-5.0.46 app/models/insights_facet.rb
foreman_rh_cloud-5.0.45 app/models/insights_facet.rb
foreman_rh_cloud-7.0.46 app/models/insights_facet.rb
foreman_rh_cloud-5.0.44 app/models/insights_facet.rb
foreman_rh_cloud-7.0.45 app/models/insights_facet.rb
foreman_rh_cloud-6.0.44 app/models/insights_facet.rb
foreman_rh_cloud-5.0.43 app/models/insights_facet.rb
foreman_rh_cloud-6.0.42.2 app/models/insights_facet.rb
foreman_rh_cloud-6.0.42.1 app/models/insights_facet.rb
foreman_rh_cloud-6.0.43 app/models/insights_facet.rb
foreman_rh_cloud-5.0.42 app/models/insights_facet.rb
foreman_rh_cloud-6.0.42 app/models/insights_facet.rb
foreman_rh_cloud-5.0.41 app/models/insights_facet.rb
foreman_rh_cloud-5.0.39 app/models/insights_facet.rb
foreman_rh_cloud-5.0.38 app/models/insights_facet.rb
foreman_rh_cloud-5.0.37 app/models/insights_facet.rb
foreman_rh_cloud-5.0.36 app/models/insights_facet.rb