Sha256: c3cba22996966baffd2e9fc117ba52682f91c899548abaf84845c9950c5b0ccd

Contents?: true

Size: 349 Bytes

Versions: 10

Compression:

Stored size: 349 Bytes

Contents

# Join model that hosts the connection between hosts and ansible_roles
class HostAnsibleRole < ActiveRecord::Base
  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-1.4.5 app/models/host_ansible_role.rb
foreman_ansible-1.4.3 app/models/host_ansible_role.rb
foreman_ansible-1.4.2 app/models/host_ansible_role.rb
foreman_ansible-1.4.1 app/models/host_ansible_role.rb
foreman_ansible-1.4.0 app/models/host_ansible_role.rb
foreman_ansible-1.3.1 app/models/host_ansible_role.rb
foreman_ansible-1.3.0 app/models/host_ansible_role.rb
foreman_ansible-1.2.1 app/models/host_ansible_role.rb
foreman_ansible-1.2 app/models/host_ansible_role.rb
foreman_ansible-1.1 app/models/host_ansible_role.rb