Project

General

Profile

« Previous | Next » 

Revision 61b5da1b

Added by Shimon Shtein over 9 years ago

Fixes #9339 - Changed the OS sorting to title

Title uses the full string, not only the name part.

View differences:

db/migrate/20140314004243_add_counter_caches.rb
# Operating Systems
add_column :operatingsystems, :hosts_count, :integer, :default => 0
add_column :operatingsystems, :hostgroups_count, :integer, :default => 0
Operatingsystem.all.each do |o|
Operatingsystem.reset_counters(o.id, :hosts)
Operatingsystem.reset_counters(o.id, :hostgroups)
Operatingsystem.unscoped.all.each do |o|
Operatingsystem.unscoped.reset_counters(o.id, :hosts)
Operatingsystem.unscoped.reset_counters(o.id, :hostgroups)
end
# Puppetclasses

Also available in: Unified diff