foreman/app/models/template_combination.rb @ 8a65dff7
cab0d8c6 | Ohad Levy | class TemplateCombination < ActiveRecord::Base
|
|
belongs_to :config_template
|
|||
belongs_to :environment
|
|||
belongs_to :hostgroup
|
|||
validates_uniqueness_of :environment_id, :scope => [:hostgroup_id, :config_template_id]
|
|||
validates_uniqueness_of :hostgroup_id, :scope => [:environment_id, :config_template_id]
|
|||
end
|