Sha256: aa347a7fa2a876edeb510974264ed995b1e452811d1149e200876b1f851e96c6

Contents?: true

Size: 311 Bytes

Versions: 39

Compression:

Stored size: 311 Bytes

Contents

# frozen_string_literal: true

# Join model that hosts the connection between hosts and ansible_roles
class HostAnsibleRole < ApplicationRecord
  belongs_to_host
  belongs_to :ansible_role

  validates :ansible_role_id, :presence => true,
                              :uniqueness => { :scope => :host_id }
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
foreman_ansible-4.0.2 app/models/host_ansible_role.rb
foreman_ansible-4.0.0 app/models/host_ansible_role.rb
foreman_ansible-3.0.9 app/models/host_ansible_role.rb
foreman_ansible-3.0.8 app/models/host_ansible_role.rb
foreman_ansible-3.0.7 app/models/host_ansible_role.rb
foreman_ansible-3.0.6 app/models/host_ansible_role.rb
foreman_ansible-3.0.5 app/models/host_ansible_role.rb
foreman_ansible-3.0.4 app/models/host_ansible_role.rb
foreman_ansible-3.0.3 app/models/host_ansible_role.rb
foreman_ansible-2.3.6 app/models/host_ansible_role.rb
foreman_ansible-2.3.5 app/models/host_ansible_role.rb
foreman_ansible-2.3.4 app/models/host_ansible_role.rb
foreman_ansible-3.0.2 app/models/host_ansible_role.rb
foreman_ansible-3.0.1 app/models/host_ansible_role.rb
foreman_ansible-3.0.0 app/models/host_ansible_role.rb
foreman_ansible-2.3.3 app/models/host_ansible_role.rb
foreman_ansible-2.3.2 app/models/host_ansible_role.rb
foreman_ansible-2.3.1 app/models/host_ansible_role.rb
foreman_ansible-2.3.0 app/models/host_ansible_role.rb