学院统计的主机数

dev_SaaS
cxt 6 years ago
parent 54bb513255
commit c579ede792

@ -15,6 +15,8 @@ unless RUBY_PLATFORM =~ /w32/
gem 'rqrcode_png'
gem 'roo-xls'
gem 'newrelic_rpm'
gem 'seventeen_mon'
gem 'mobinfo'
end
gem 'certified'
gem 'net-ssh', '2.9.1'
@ -22,8 +24,6 @@ unless RUBY_PLATFORM =~ /w32/
gem 'nokogiri'
end
gem 'seventeen_mon'
gem 'mobinfo'
gem 'simple_xlsx_reader'
gem 'wechat',path: 'lib/wechat'
gem 'grack', path:'lib/grack'

@ -1,3 +1,4 @@
#encoding: utf-8
class MigrateExerUserScore < ActiveRecord::Migration
def up
exercise = Exercise.where(:id => 1264).first

@ -0,0 +1,10 @@
class DepartmentDefaultHostCount < ActiveRecord::Migration
def up
change_column :departments, :host_count, :integer, :default => 5
Department.update_all(:host_count => 5)
end
def down
end
end
Loading…
Cancel
Save