Typo (#14819).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12130 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
9149425750
commit
e7931941a7
|
@ -2,7 +2,7 @@ class RemoveEolsFromAttachmentsFilename < ActiveRecord::Migration
|
||||||
def up
|
def up
|
||||||
Attachment.where("filename like ? or filename like ?", "%\r%", "%\n%").each do |attachment|
|
Attachment.where("filename like ? or filename like ?", "%\r%", "%\n%").each do |attachment|
|
||||||
filename = attachment.filename.to_s.tr("\r\n", "_")
|
filename = attachment.filename.to_s.tr("\r\n", "_")
|
||||||
Attachment.where(:id => attachement.id).update_all(:filename => filename)
|
Attachment.where(:id => attachment.id).update_all(:filename => filename)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue