课堂视频更换成视频直播

pay_subject
cxt 5 years ago
parent c133508568
commit 19ba6f6a56

@ -413,7 +413,7 @@ class Course < ApplicationRecord
when 'exercise' then '试卷' when 'exercise' then '试卷'
when 'poll' then '问卷' when 'poll' then '问卷'
when 'attachment' then '资源' when 'attachment' then '资源'
when 'video' then '视频' when 'video' then '视频直播'
when 'board' then '讨论' when 'board' then '讨论'
when 'course_group' then '分班' when 'course_group' then '分班'
when 'statistics' then '统计' when 'statistics' then '统计'

@ -0,0 +1,5 @@
class MigrateVideoNam < ActiveRecord::Migration[5.2]
def change
CourseModule.where(module_type: "video").update_all(module_name: "视频直播")
end
end
Loading…
Cancel
Save