summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-01 19:32:07 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-01 19:32:07 +0000
commiteda002d0dfd5b4ce3294a6b2001bb6c45d1f3dfc (patch)
tree1665c9b9161d4548a9cead390e3e71ddd166d300 /db
parent737247f4c9e2175107f8459807fc951c3744ca36 (diff)
downloadredmine-eda002d0dfd5b4ce3294a6b2001bb6c45d1f3dfc.tar.gz
redmine-eda002d0dfd5b4ce3294a6b2001bb6c45d1f3dfc.zip
Adds an index on users.type for faster retrieval of groups.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5288 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20110401192910_add_index_to_users_type.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20110401192910_add_index_to_users_type.rb b/db/migrate/20110401192910_add_index_to_users_type.rb
new file mode 100644
index 000000000..b9f501120
--- /dev/null
+++ b/db/migrate/20110401192910_add_index_to_users_type.rb
@@ -0,0 +1,9 @@
+class AddIndexToUsersType < ActiveRecord::Migration
+ def self.up
+ add_index :users, :type
+ end
+
+ def self.down
+ remove_index :users, :type
+ end
+end