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-6.2.0 app/models/host_ansible_role.rb
foreman_ansible-6.1.1 app/models/host_ansible_role.rb
foreman_ansible-6.0.2 app/models/host_ansible_role.rb
foreman_ansible-6.1.0 app/models/host_ansible_role.rb
foreman_ansible-6.0.1 app/models/host_ansible_role.rb
foreman_ansible-5.1.3 app/models/host_ansible_role.rb
foreman_ansible-6.0.0 app/models/host_ansible_role.rb
foreman_ansible-5.1.2 app/models/host_ansible_role.rb
foreman_ansible-5.1.1 app/models/host_ansible_role.rb
foreman_ansible-5.1.0 app/models/host_ansible_role.rb
foreman_ansible-4.0.3.5 app/models/host_ansible_role.rb
foreman_ansible-4.0.3.4 app/models/host_ansible_role.rb
foreman_ansible-4.0.3.3 app/models/host_ansible_role.rb
foreman_ansible-4.0.3.2 app/models/host_ansible_role.rb
foreman_ansible-5.0.1 app/models/host_ansible_role.rb
foreman_ansible-4.0.5 app/models/host_ansible_role.rb
foreman_ansible-4.0.3.1 app/models/host_ansible_role.rb
foreman_ansible-4.0.4 app/models/host_ansible_role.rb
foreman_ansible-5.0.0 app/models/host_ansible_role.rb
foreman_ansible-4.0.3 app/models/host_ansible_role.rb