diff --git a/app/models/course.rb b/app/models/course.rb index 37af178fe..8de6ef9b6 100644 --- a/app/models/course.rb +++ b/app/models/course.rb @@ -413,7 +413,7 @@ class Course < ApplicationRecord when 'exercise' then '试卷' when 'poll' then '问卷' when 'attachment' then '资源' - when 'video' then '视频' + when 'video' then '视频直播' when 'board' then '讨论' when 'course_group' then '分班' when 'statistics' then '统计' diff --git a/db/migrate/20200211034807_migrate_video_nam.rb b/db/migrate/20200211034807_migrate_video_nam.rb new file mode 100644 index 000000000..04a6cfe63 --- /dev/null +++ b/db/migrate/20200211034807_migrate_video_nam.rb @@ -0,0 +1,5 @@ +class MigrateVideoNam < ActiveRecord::Migration[5.2] + def change + CourseModule.where(module_type: "video").update_all(module_name: "视频直播") + end +end