Sha256: 9da35f1c886fa0b3283a9b915dc37f51daedf3a9f4ff59002e20e28014e8183f

Contents?: true

Size: 263 Bytes

Versions: 15

Compression:

Stored size: 263 Bytes

Contents

class InsightsHit < ApplicationRecord
  has_one :host
  # since the facet is one-to-one association with a host, we can connect
  # through host_id column on both this model and facet.
  has_one :insights_facet, foreign_key: 'host_id', primary_key: 'host_id'
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
foreman_rh_cloud-0.9.12 app/models/insights_hit.rb
foreman_rh_cloud-1.0.12 app/models/insights_hit.rb
foreman_rh_cloud-2.0.12 app/models/insights_hit.rb
foreman_rh_cloud-0.9.11 app/models/insights_hit.rb
foreman_rh_cloud-1.0.11 app/models/insights_hit.rb
foreman_rh_cloud-2.0.11 app/models/insights_hit.rb
foreman_rh_cloud-0.9.10 app/models/insights_hit.rb
foreman_rh_cloud-1.0.10 app/models/insights_hit.rb
foreman_rh_cloud-2.0.10 app/models/insights_hit.rb
foreman_rh_cloud-2.0.9 app/models/insights_hit.rb
foreman_rh_cloud-1.0.9 app/models/insights_hit.rb
foreman_rh_cloud-0.9.9 app/models/insights_hit.rb
foreman_rh_cloud-0.9.8 app/models/insights_hit.rb
foreman_rh_cloud-1.0.8 app/models/insights_hit.rb
foreman_rh_cloud-2.0.8 app/models/insights_hit.rb