Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_forum
jingquan huang 6 years ago
commit 90c4f9cce6

@ -2,7 +2,7 @@ module Searchable::Shixun
extend ActiveSupport::Concern
included do
searchkick language: 'chinese'#, callbacks: :async
searchkick language: 'chinese', callbacks: :async
scope :search_import, -> { includes(:shixun_info, :challenges, :challenge_tags, :users, user: { user_extension: :school }) }
end

@ -13,7 +13,7 @@ class Users::BindEmailService < ApplicationService
raise Error, '该邮箱已被绑定' if User.where.not(id: user.id).exists?(mail: params[:email])
code = VerificationCode.where(mail: params[:email], code: params[:code], code_type: 4).last
code = VerificationCode.where(email: params[:email], code: params[:code], code_type: 4).last
raise Error, '验证码无效' unless code&.effective?
ActiveRecord::Base.transaction do

@ -1,7 +1,7 @@
class AddDescriptionToEduSettings < ActiveRecord::Migration[5.2]
def change
# add_column :edu_settings, :description, :string
# add_index :edu_settings, :name, unique: :true
add_column :edu_settings, :description, :string
add_index :edu_settings, :name, unique: :true
['tomcat_webssh', 'webssh_username', 'webssh_password', 'git_address_ip', 'git_address_domain', 'git_username',
'git_password', 'public_key', 'private_key', 'public_bucket', 'public_bucket_host', 'public_cdn_host', 'cloud_bridge',

@ -1,6 +1,6 @@
class AddExecTimeToChallenge < ActiveRecord::Migration[5.2]
def change
# add_column :challenges, :exec_time, :integer
add_column :challenges, :exec_time, :integer
Shixun.find_each do |shixun|
shixun.challenges.update_all(exec_time: shixun.exec_time)

@ -1,7 +1,7 @@
class AddSecKeyToOutputs < ActiveRecord::Migration[5.2]
def change
add_column :outputs, :sec_key, :string
add_column :outputs, :ts_mem, :float
add_column :outputs, :ts_time, :float
#add_column :outputs, :sec_key, :string
# add_column :outputs, :ts_mem, :float
# add_column :outputs, :ts_time, :float
end
end

@ -1,5 +1,5 @@
class AddMaxMemToEvaluateRecords < ActiveRecord::Migration[5.2]
def change
add_column :evaluate_records, :max_mem, :float
#add_column :evaluate_records, :max_mem, :float
end
end

Loading…
Cancel
Save