ManageIQ/manageiq

View on GitHub
app/models/container_build_pod.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ContainerBuildPod < ApplicationRecord
  include CustomAttributeMixin

  belongs_to :ext_management_system, :foreign_key => "ems_id"
  belongs_to :container_build

  has_many :labels, -> { where(:section => "labels") }, # rubocop:disable Rails/HasManyOrHasOneDependent
           :class_name => "CustomAttribute",
           :as         => :resource,
           :inverse_of => :resource

  has_one :container_group
end