dev_ec
cxt 6 years ago
parent 04722f0a8c
commit cfb610a787

@ -457,6 +457,8 @@ class GraduationTasksController < ApplicationController
@task.comment_time = @task.cross_comment ? params[:comment_time] : nil
@task.comment_status = 2 if @task.cross_comment && @task.comment_status == 0
# unless @task.cross_comment
# @task.graduation_work_comment_assignations.destroy_all
# end

@ -0,0 +1,5 @@
class MigrateGraduationTaskCommentStatus < ActiveRecord::Migration[5.2]
def change
GraduationTask.where(cross_comment: true, comment_status: 0).update_all(comment_status: 2)
end
end
Loading…
Cancel
Save