Sha256: 1a0e2cf6f17286282881a74f5fa409da007d07c857b12c79eadbf33157341c26
Contents?: true
Size: 365 Bytes
Versions: 70
Compression:
Stored size: 365 Bytes
Contents
# frozen_string_literal: true # Join model that hosts the connection between hostgroups and ansible_roles class HostgroupAnsibleRole < ApplicationRecord belongs_to :hostgroup belongs_to :ansible_role acts_as_list scope: :hostgroup validates :ansible_role_id, :presence => true, :uniqueness => { :scope => :hostgroup_id } end
Version data entries
70 entries across 70 versions & 1 rubygems