summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-02 11:45:39 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-02 11:45:39 +0000
commitddf249d7b055baf04aa592d3ea91f1c5acac260a (patch)
treef10a622368363b9dbba3e105b9e25d3da0e2c4b8 /db
parent19934ec2db4ede2184eb74bd4850510dc0af0265 (diff)
downloadredmine-ddf249d7b055baf04aa592d3ea91f1c5acac260a.tar.gz
redmine-ddf249d7b055baf04aa592d3ea91f1c5acac260a.zip
Speedup remove_inherited_roles (#22850).
Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@15883 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20161002133421_add_index_on_member_roles_inherited_from.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20161002133421_add_index_on_member_roles_inherited_from.rb b/db/migrate/20161002133421_add_index_on_member_roles_inherited_from.rb
new file mode 100644
index 000000000..2a06a9e6c
--- /dev/null
+++ b/db/migrate/20161002133421_add_index_on_member_roles_inherited_from.rb
@@ -0,0 +1,5 @@
+class AddIndexOnMemberRolesInheritedFrom < ActiveRecord::Migration
+ def change
+ add_index :member_roles, :inherited_from
+ end
+end