Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

Adjustreact
caicai8 5 years ago
commit ffc3dedbbd

@ -0,0 +1,10 @@
class MigrateJoinCourseMessage < ActiveRecord::Migration[5.2]
def change
Tiding.where(container_type: "JoinCourse", status: 0).find_each do |tiding|
unless CourseMessage.where(course_message_id: tiding.trigger_user_id, course_id: tiding.container_id,
course_message_type: "JoinCourseRequest", status: 0).exists?
tiding.update!(status: 1)
end
end
end
end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Loading…
Cancel
Save