dev_jupyter
cxt 5 years ago
parent 72a48f6e6c
commit 91a83784e0

@ -1,4 +1,8 @@
class MigrateCourseGroupMemberCount < ActiveRecord::Migration[5.2]
def change
CourseGroup.reset_column_information
CourseGroup.find_each do |group|
CourseGroup.reset_counters(group.id, :course_members_count)
end
end
end

Loading…
Cancel
Save