|
|
|
@ -10,7 +10,7 @@ class ModifyCourseGroupForCourses < ActiveRecord::Migration[5.2]
|
|
|
|
|
cg.homework_group_reviews.update_all(course_group_id: g.id)
|
|
|
|
|
cg.homework_group_settings.update_all(course_group_id: g.id)
|
|
|
|
|
cg.teacher_course_groups.update_all(course_group_id: g.id)
|
|
|
|
|
cg.destory!
|
|
|
|
|
cg.destroy!
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|