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-6.3.0 app/models/host_ansible_role.rb