Sha256: 90915d89c204d46fa8b521acc92fcbca53f8c271c9bdac62368bf5627d7aa4d5

Contents?: true

Size: 348 Bytes

Versions: 10

Compression:

Stored size: 348 Bytes

Contents

# Join model that hosts the connection between hosts and ansible_roles
class HostAnsibleRole < ApplicationRecord
  audited :associated_with => :host, :allow_mass_assignment => true
  belongs_to_host
  belongs_to :ansible_role

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foreman_ansible-2.0.4 app/models/host_ansible_role.rb
foreman_ansible-2.0.3 app/models/host_ansible_role.rb
foreman_ansible-2.0.2 app/models/host_ansible_role.rb
foreman_ansible-1.5.2 app/models/host_ansible_role.rb
foreman_ansible-1.5.1 app/models/host_ansible_role.rb
foreman_ansible-1.5.0 app/models/host_ansible_role.rb
foreman_ansible-2.1.0 app/models/host_ansible_role.rb
foreman_ansible-2.0.1 app/models/host_ansible_role.rb
foreman_ansible-2.0.0 app/models/host_ansible_role.rb
foreman_ansible-1.4.6 app/models/host_ansible_role.rb