]> source.dussan.org Git - redmine.git/commitdiff
Typo (#14819).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 11 Sep 2013 21:34:27 +0000 (21:34 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 11 Sep 2013 21:34:27 +0000 (21:34 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12130 e93f8b46-1217-0410-a6f0-8f06a7374b81

db/migrate/20130911193200_remove_eols_from_attachments_filename.rb

index 3708031e0df66e9be3936b0a7a22176d66ff63dd..d2f8281706d5359b0d8c994a21e5174588a19596 100644 (file)
@@ -2,7 +2,7 @@ class RemoveEolsFromAttachmentsFilename < ActiveRecord::Migration
   def up
     Attachment.where("filename like ? or filename like ?", "%\r%", "%\n%").each do |attachment|
       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