summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-09-11 21:34:27 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-09-11 21:34:27 +0000
commite7931941a7a3272ad9a5888fa849cb9263f8e4bd (patch)
treeaf6861a2be4c1badbb5d20ad966c16bde61df3d3
parent9149425750372103dc9399cf1d8436979402c865 (diff)
downloadredmine-e7931941a7a3272ad9a5888fa849cb9263f8e4bd.tar.gz
redmine-e7931941a7a3272ad9a5888fa849cb9263f8e4bd.zip
Typo (#14819).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12130 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--db/migrate/20130911193200_remove_eols_from_attachments_filename.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20130911193200_remove_eols_from_attachments_filename.rb b/db/migrate/20130911193200_remove_eols_from_attachments_filename.rb
index 3708031e0..d2f828170 100644
--- a/db/migrate/20130911193200_remove_eols_from_attachments_filename.rb
+++ b/db/migrate/20130911193200_remove_eols_from_attachments_filename.rb
@@ -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