mirror of
https://github.com/redmine/redmine.git
synced 2025-11-10 07:16:03 +01:00
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
This commit is contained in:
9
db/migrate/20110401192910_add_index_to_users_type.rb
Normal file
9
db/migrate/20110401192910_add_index_to_users_type.rb
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user