summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-03-02 19:51:19 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-03-02 19:51:19 +0000
commit7fe4a76f4cb0d601f13bb3a4e5bc7f16580c4086 (patch)
tree5cc5afc44d752dde4b3d29fafd747c894f7a2016 /db
parent18f431acc02757818f029c6551a6626ff796be63 (diff)
downloadredmine-7fe4a76f4cb0d601f13bb3a4e5bc7f16580c4086.tar.gz
redmine-7fe4a76f4cb0d601f13bb3a4e5bc7f16580c4086.zip
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
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170207050700_add_index_on_disk_filename_to_attachments.rb5
1 files changed, 5 insertions, 0 deletions
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