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-7.1.4 app/models/host_ansible_role.rb
foreman_ansible-9.0.1 app/models/host_ansible_role.rb
foreman_ansible-7.1.3 app/models/host_ansible_role.rb
foreman_ansible-9.0.0 app/models/host_ansible_role.rb
foreman_ansible-7.1.2 app/models/host_ansible_role.rb
foreman_ansible-7.1.1 app/models/host_ansible_role.rb
foreman_ansible-8.0.1 app/models/host_ansible_role.rb
foreman_ansible-8.0.0 app/models/host_ansible_role.rb
foreman_ansible-7.0.4 app/models/host_ansible_role.rb
foreman_ansible-7.1.0 app/models/host_ansible_role.rb
foreman_ansible-7.0.3 app/models/host_ansible_role.rb
foreman_ansible-7.0.2 app/models/host_ansible_role.rb
foreman_ansible-7.0.1 app/models/host_ansible_role.rb
foreman_ansible-7.0.0 app/models/host_ansible_role.rb
foreman_ansible-6.3.4 app/models/host_ansible_role.rb
foreman_ansible-6.3.3 app/models/host_ansible_role.rb
foreman_ansible-6.3.2 app/models/host_ansible_role.rb
foreman_ansible-6.3.1 app/models/host_ansible_role.rb
foreman_ansible-6.4.1 app/models/host_ansible_role.rb
foreman_ansible-6.4.0 app/models/host_ansible_role.rb