Sha256: 53dc6594ac894a235e26f259f33e65e232da51c31983a1825dff9922c47f5119

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 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
  attr_accessible :host_id, :host, :ansible_role_id, :ansible_role

  belongs_to_host
  belongs_to :ansible_role

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman_ansible-1.0 app/models/host_ansible_role.rb