Sha256: 46952a6a87441835b3cd5d2442334d6a89dfd14d7bc23f186536e870fd1262be

Contents?: true

Size: 302 Bytes

Versions: 10

Compression:

Stored size: 302 Bytes

Contents

# Join model that hosts the connection between hostgroups and ansible_roles
class HostgroupAnsibleRole < ActiveRecord::Base
  belongs_to :hostgroup
  belongs_to :ansible_role

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foreman_ansible-1.4.5 app/models/hostgroup_ansible_role.rb
foreman_ansible-1.4.3 app/models/hostgroup_ansible_role.rb
foreman_ansible-1.4.2 app/models/hostgroup_ansible_role.rb
foreman_ansible-1.4.1 app/models/hostgroup_ansible_role.rb
foreman_ansible-1.4.0 app/models/hostgroup_ansible_role.rb
foreman_ansible-1.3.1 app/models/hostgroup_ansible_role.rb
foreman_ansible-1.3.0 app/models/hostgroup_ansible_role.rb
foreman_ansible-1.2.1 app/models/hostgroup_ansible_role.rb
foreman_ansible-1.2 app/models/hostgroup_ansible_role.rb
foreman_ansible-1.1 app/models/hostgroup_ansible_role.rb