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-12.0.3 app/models/host_ansible_role.rb
foreman_ansible-12.0.2 app/models/host_ansible_role.rb
foreman_ansible-12.0.1 app/models/host_ansible_role.rb
foreman_ansible-12.0.0 app/models/host_ansible_role.rb
foreman_ansible-11.2.1 app/models/host_ansible_role.rb
foreman_ansible-7.1.7 app/models/host_ansible_role.rb
foreman_ansible-11.2.0 app/models/host_ansible_role.rb
foreman_ansible-11.1.2 app/models/host_ansible_role.rb
foreman_ansible-7.1.6 app/models/host_ansible_role.rb
foreman_ansible-11.1.1 app/models/host_ansible_role.rb
foreman_ansible-10.4.1 app/models/host_ansible_role.rb
foreman_ansible-7.1.5 app/models/host_ansible_role.rb
foreman_ansible-11.1.0 app/models/host_ansible_role.rb
foreman_ansible-10.4.0 app/models/host_ansible_role.rb
foreman_ansible-10.3.0 app/models/host_ansible_role.rb
foreman_ansible-11.0.0 app/models/host_ansible_role.rb
foreman_ansible-10.2.0 app/models/host_ansible_role.rb
foreman_ansible-10.1.0 app/models/host_ansible_role.rb
foreman_ansible-10.0.1 app/models/host_ansible_role.rb
foreman_ansible-10.0.0 app/models/host_ansible_role.rb