foreman/db/migrate/20151104100257_add_hosts_count_to_hostgroup.rb @ 5655a7ac
class AddHostsCountToHostgroup < ActiveRecord::Migration[4.2]
|
|
def up
|
|
add_column :hostgroups, :hosts_count, :integer, :default => 0
|
|
end
|
|
|
|
def down
|
|
remove_column :hostgroups, :hosts_count
|
|
end
|
|
end
|