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…
Reference in new issue