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
