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-9.0.59 app/models/insights_facet.rb
foreman_rh_cloud-9.0.58 app/models/insights_facet.rb
foreman_rh_cloud-9.0.57 app/models/insights_facet.rb
foreman_rh_cloud-10.0.1 app/models/insights_facet.rb
foreman_rh_cloud-9.0.56 app/models/insights_facet.rb
foreman_rh_cloud-9.0.55 app/models/insights_facet.rb
foreman_rh_cloud-9.0.54 app/models/insights_facet.rb
foreman_rh_cloud-9.0.53 app/models/insights_facet.rb
foreman_rh_cloud-9.0.52 app/models/insights_facet.rb
foreman_rh_cloud-8.0.52 app/models/insights_facet.rb
foreman_rh_cloud-9.0.51 app/models/insights_facet.rb
foreman_rh_cloud-8.0.51 app/models/insights_facet.rb
foreman_rh_cloud-7.0.48 app/models/insights_facet.rb
foreman_rh_cloud-7.0.47 app/models/insights_facet.rb
foreman_rh_cloud-8.0.50 app/models/insights_facet.rb
foreman_rh_cloud-8.0.49 app/models/insights_facet.rb
foreman_rh_cloud-8.0.48 app/models/insights_facet.rb
foreman_rh_cloud-8.0.47 app/models/insights_facet.rb
foreman_rh_cloud-8.0.46 app/models/insights_facet.rb
foreman_rh_cloud-6.0.45 app/models/insights_facet.rb