附件迁移文件的修改
This commit is contained in:
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…
Reference in New Issue