Commit 43d2e7b1044ec5720f8a3d6e9cb3091d8d533dc4
1 parent
940c0508
Exists in
master
and in
4 other branches
add db index for authentication_token column in users table
Showing
2 changed files
with
7 additions
and
1 deletions
Show diff stats
db/migrate/20130326142630_add_index_to_users_authentication_token.rb
0 → 100644
db/schema.rb
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | # |
12 | 12 | # It's strongly recommended to check this file into your version control system. |
13 | 13 | |
14 | -ActiveRecord::Schema.define(:version => 20130614132337) do | |
14 | +ActiveRecord::Schema.define(:version => 20130326142630) do | |
15 | 15 | |
16 | 16 | create_table "deploy_keys_projects", :force => true do |t| |
17 | 17 | t.integer "deploy_key_id", :null => false |
... | ... | @@ -298,6 +298,7 @@ ActiveRecord::Schema.define(:version => 20130614132337) do |
298 | 298 | end |
299 | 299 | |
300 | 300 | add_index "users", ["admin"], :name => "index_users_on_admin" |
301 | + add_index "users", ["authentication_token"], :name => "index_users_on_authentication_token", :unique => true | |
301 | 302 | add_index "users", ["email"], :name => "index_users_on_email", :unique => true |
302 | 303 | add_index "users", ["extern_uid", "provider"], :name => "index_users_on_extern_uid_and_provider", :unique => true |
303 | 304 | add_index "users", ["name"], :name => "index_users_on_name" | ... | ... |