]> source.dussan.org Git - redmine.git/commitdiff
Adds an index to attachments.disk_filename (#25022).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 2 Mar 2017 19:51:19 +0000 (19:51 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 2 Mar 2017 19:51:19 +0000 (19:51 +0000)
Patch by Jens Kraemer.

git-svn-id: http://svn.redmine.org/redmine/trunk@16352 e93f8b46-1217-0410-a6f0-8f06a7374b81

db/migrate/20170207050700_add_index_on_disk_filename_to_attachments.rb [new file with mode: 0644]

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 (file)
index 0000000..6f41a9c
--- /dev/null
@@ -0,0 +1,5 @@
+class AddIndexOnDiskFilenameToAttachments < ActiveRecord::Migration
+  def change
+    add_index :attachments, :disk_filename
+  end
+end