增加日志

dev_forum
daiao 5 years ago
parent 42bbeb1ef8
commit 41f01f4961

@ -180,6 +180,7 @@ class ShixunsController < ApplicationController
end
# 同步配置
logger.info("########-shixun_service_configs_count: #{@shixun.shixun_service_configs.pluck(:id, :shixun_id)}")
@shixun.shixun_service_configs.each do |config|
ShixunServiceConfig.create!(:shixun_id => @new_shixun.id,
:cpu_limit => config.cpu_limit,

@ -0,0 +1,5 @@
class AddIndexForShixunServices < ActiveRecord::Migration[5.2]
def change
add_index :shixun_service_configs, [:shixun_id, :mirror_repository_id], unique: true, name: "shixun_id_mirror_id_unique"
end
end
Loading…
Cancel
Save