项目课程讨论区资源公开迁移

dev_daiao_temp
huang 9 years ago
parent ec8053b248
commit a3467a5697

@ -0,0 +1,13 @@
class UpdateAttachPublicForMessage < ActiveRecord::Migration
def up
begin
attachments = Attachment.where(:container_type => "Message", :is_public => 0)
attachments.update_all(:is_public => 1)
rescue Exception => e
puts e
end
end
def down
end
end
Loading…
Cancel
Save