Sha256: 1ed9d93ba5b854b09326b9f61632d6535a45641a4e712b7416ac1dccd6879a9c

Contents?: true

Size: 356 Bytes

Versions: 10

Compression:

Stored size: 356 Bytes

Contents

class DiscoveryAttributeSet < ApplicationRecord
  belongs_to :host, :class_name => "Host::Discovered", :foreign_key => :host_id

  validates :cpu_count, :presence => true, :numericality => {:greater_than_or_equal_to => 0}
  validates :memory, :presence => true,    :numericality => {:greater_than_or_equal_to => 0}
  validates :host, :presence => true
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foreman_discovery-15.0.0 app/models/discovery_attribute_set.rb
foreman_discovery-14.0.1 app/models/discovery_attribute_set.rb
foreman_discovery-14.0.0 app/models/discovery_attribute_set.rb
foreman_discovery-13.0.1 app/models/discovery_attribute_set.rb
foreman_discovery-12.0.2 app/models/discovery_attribute_set.rb
foreman_discovery-12.0.1 app/models/discovery_attribute_set.rb
foreman_discovery-12.0.0 app/models/discovery_attribute_set.rb
foreman_discovery-11.0.0 app/models/discovery_attribute_set.rb
foreman_discovery-10.0.0 app/models/discovery_attribute_set.rb
foreman_discovery-9.1.0 app/models/discovery_attribute_set.rb