|
|
|
@ -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))
|
|
|
|
|