Project

General

Profile

« Previous | Next » 

Revision 8b2b85b1

Added by David Davis over 10 years ago

Fixing broken tests by reloading models and fixing relationships

View differences:

app/models/katello/system_group.rb
has_many :activation_keys, :through => :key_system_groups
has_many :system_system_groups, :class_name => "Katello::SystemSystemGroup", :dependent => :destroy
has_many :systems, {:through => :system_system_groups,
:after_add => :add_system,
:after_remove => :remove_system
}
has_many :systems, :through => :system_system_groups, :class_name => "Katello::System",
:after_add => :add_system, :after_remove => :remove_system
has_many :jobs, :class_name => "Katello::Job", :as => :job_owner, :dependent => :nullify

Also available in: Unified diff