From ddf249d7b055baf04aa592d3ea91f1c5acac260a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 2 Oct 2016 11:45:39 +0000 Subject: Speedup remove_inherited_roles (#22850). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@15883 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../20161002133421_add_index_on_member_roles_inherited_from.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20161002133421_add_index_on_member_roles_inherited_from.rb (limited to 'db') 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 -- cgit v1.2.3