From 97aecd0ea4757e34c47195cc54010cd2eac9e0c5 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Thu, 22 Aug 2019 16:25:45 +0800 Subject: [PATCH] .. --- lib/tasks/public_message.rake | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tasks/public_message.rake b/lib/tasks/public_message.rake index 0db04aafc..9d145df27 100644 --- a/lib/tasks/public_message.rake +++ b/lib/tasks/public_message.rake @@ -67,6 +67,7 @@ namespace :sync do if replies.present? replies.each do |reply| reply_time = random_smaller_time(rand_created_on, start_time, end_time) + puts("666") reply_message = Message.create!(board_id: board_id.to_i, author_id: reply.user_id, parent_id: new_message.id, root_id: message_id) reply_message.update_columns(created_on: reply_time, updated_on: reply_time) reply_message_detail = MessageDetail.create!(message_id: reply_message.id, content: reply.try(:content))