From 7635c4e526e897671c2f98e13164fcfc3fce9982 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 15 Jan 2020 13:42:42 +0800 Subject: [PATCH] 1 --- lib/tasks/statistic_subject_info.rake | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/tasks/statistic_subject_info.rake b/lib/tasks/statistic_subject_info.rake index 0385e3b5a..68d75293d 100644 --- a/lib/tasks/statistic_subject_info.rake +++ b/lib/tasks/statistic_subject_info.rake @@ -134,7 +134,6 @@ namespace :subjects do buffer_size += 1 if buffer_size == 1000 sql = "REPLACE INTO subject_user_infos(#{column_value}) VALUES #{str}" - puts sql ActiveRecord::Base.connection.execute sql str = "" buffer_size = 0