Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-22 12:19:12 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-22 12:19:12 +0400
commit8d70ac008dbb43752e2c1f69530c4453eb8e0e2d (patch)
treee1dc083892bb02c4606d02efb0b61b9d2dfa5966 /db
parent9de23248d8f3d6464d329b979ccfe98c23eb4aa3 (diff)
parentf4e2865d2fabf55bb017f7f88fa2ef0d1c3d4fad (diff)
Merge branch 'master' into 6-0-dev
Conflicts: VERSION db/schema.rb
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130326142630_add_index_to_users_authentication_token.rb5
-rw-r--r--db/schema.rb1
2 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20130326142630_add_index_to_users_authentication_token.rb b/db/migrate/20130326142630_add_index_to_users_authentication_token.rb
new file mode 100644
index 00000000000..d42ef113738
--- /dev/null
+++ b/db/migrate/20130326142630_add_index_to_users_authentication_token.rb
@@ -0,0 +1,5 @@
+class AddIndexToUsersAuthenticationToken < ActiveRecord::Migration
+ def change
+ add_index :users, :authentication_token, unique: true
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 500828a97e2..ef9dcfcdcc0 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -295,6 +295,7 @@ ActiveRecord::Schema.define(:version => 20130621195223) 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", ["name"], :name => "index_users_on_name"
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true