From: Jean-Philippe Lang Date: Thu, 2 Mar 2017 19:51:19 +0000 (+0000) Subject: Adds an index to attachments.disk_filename (#25022). X-Git-Tag: 3.4.0~287 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7fe4a76f4cb0d601f13bb3a4e5bc7f16580c4086;p=redmine.git Adds an index to attachments.disk_filename (#25022). Patch by Jens Kraemer. git-svn-id: http://svn.redmine.org/redmine/trunk@16352 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/db/migrate/20170207050700_add_index_on_disk_filename_to_attachments.rb b/db/migrate/20170207050700_add_index_on_disk_filename_to_attachments.rb new file mode 100644 index 000000000..6f41a9c4b --- /dev/null +++ b/db/migrate/20170207050700_add_index_on_disk_filename_to_attachments.rb @@ -0,0 +1,5 @@ +class AddIndexOnDiskFilenameToAttachments < ActiveRecord::Migration + def change + add_index :attachments, :disk_filename + end +end