From 7fe4a76f4cb0d601f13bb3a4e5bc7f16580c4086 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 2 Mar 2017 19:51:19 +0000 Subject: [PATCH] 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 --- ...170207050700_add_index_on_disk_filename_to_attachments.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20170207050700_add_index_on_disk_filename_to_attachments.rb 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 -- 2.39.5