Skip to content
Snippets Groups Projects
Commit 43d2e7b1 authored by Nihad Abbasov's avatar Nihad Abbasov
Browse files

add db index for authentication_token column in users table

parent 940c0508
No related branches found
No related tags found
3 merge requests!4399fixed nav bar for empty repos (fixes #4375),!4367Update docs from 5.2 to 5.3 in 5.3-stable branch,!3408add db index for authentication_token column in users table
class AddIndexToUsersAuthenticationToken < ActiveRecord::Migration
def change
add_index :users, :authentication_token, unique: true
end
end
Loading
Loading
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
 
ActiveRecord::Schema.define(:version => 20130614132337) do
ActiveRecord::Schema.define(:version => 20130326142630) do
 
create_table "deploy_keys_projects", :force => true do |t|
t.integer "deploy_key_id", :null => false
Loading
Loading
@@ -298,6 +298,7 @@ ActiveRecord::Schema.define(:version => 20130614132337) do
end
 
add_index "users", ["admin"], :name => "index_users_on_admin"
add_index "users", ["authentication_token"], :name => "index_users_on_authentication_token", :unique => true
add_index "users", ["email"], :name => "index_users_on_email", :unique => true
add_index "users", ["extern_uid", "provider"], :name => "index_users_on_extern_uid_and_provider", :unique => true
add_index "users", ["name"], :name => "index_users_on_name"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment