From eda002d0dfd5b4ce3294a6b2001bb6c45d1f3dfc Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 1 Apr 2011 19:32:07 +0000 Subject: [PATCH] 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 --- db/migrate/20110401192910_add_index_to_users_type.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20110401192910_add_index_to_users_type.rb 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