附件迁移文件的修改

tmp
cxt 10 years ago
parent 9eeb468079
commit dbbdae1be2

@ -7,7 +7,7 @@ class UpdateAttachments < ActiveRecord::Migration
if attachment.container_type == 'Course'
course = attachment.course
if course
if course.is_public == 0 && attachment.attachtype == 1
if course.is_public == 0
attachment.is_public = 0
attachment.save
end

Loading…
Cancel
Save