diff --git a/Gemfile b/Gemfile index 5e4be042..ce827d25 100644 --- a/Gemfile +++ b/Gemfile @@ -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' diff --git a/db/migrate/20190301112631_migrate_exer_user_score.rb b/db/migrate/20190301112631_migrate_exer_user_score.rb index d334373c..dd075562 100644 --- a/db/migrate/20190301112631_migrate_exer_user_score.rb +++ b/db/migrate/20190301112631_migrate_exer_user_score.rb @@ -1,3 +1,4 @@ +#encoding: utf-8 class MigrateExerUserScore < ActiveRecord::Migration def up exercise = Exercise.where(:id => 1264).first diff --git a/db/migrate/20190304021422_department_default_host_count.rb b/db/migrate/20190304021422_department_default_host_count.rb new file mode 100644 index 00000000..f13f540b --- /dev/null +++ b/db/migrate/20190304021422_department_default_host_count.rb @@ -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