Sha256: fcaa2624a92ddff5f87949741af9f1837ba1715756da0b3e0b67a84e6e39550e

Contents?: true

Size: 339 Bytes

Versions: 61

Compression:

Stored size: 339 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
  acts_as_list scope: :host

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

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
foreman_ansible-14.2.1 app/models/host_ansible_role.rb
foreman_ansible-13.0.7 app/models/host_ansible_role.rb
foreman_ansible-14.2.0 app/models/host_ansible_role.rb
foreman_ansible-14.1.1 app/models/host_ansible_role.rb
foreman_ansible-14.1.0 app/models/host_ansible_role.rb
foreman_ansible-13.0.5 app/models/host_ansible_role.rb
foreman_ansible-14.0.0 app/models/host_ansible_role.rb
foreman_ansible-13.0.4 app/models/host_ansible_role.rb
foreman_ansible-13.0.3 app/models/host_ansible_role.rb
foreman_ansible-13.0.2 app/models/host_ansible_role.rb
foreman_ansible-13.0.1 app/models/host_ansible_role.rb
foreman_ansible-13.0.0 app/models/host_ansible_role.rb
foreman_ansible-12.0.7 app/models/host_ansible_role.rb
foreman_ansible-10.4.4 app/models/host_ansible_role.rb
foreman_ansible-7.1.8 app/models/host_ansible_role.rb
foreman_ansible-12.0.6 app/models/host_ansible_role.rb
foreman_ansible-12.0.5 app/models/host_ansible_role.rb
foreman_ansible-10.4.3 app/models/host_ansible_role.rb
foreman_ansible-12.0.4 app/models/host_ansible_role.rb
foreman_ansible-10.4.2 app/models/host_ansible_role.rb