diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-22 11:19:12 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-22 11:19:12 +0300 |
commit | 8d70ac008dbb43752e2c1f69530c4453eb8e0e2d (patch) | |
tree | e1dc083892bb02c4606d02efb0b61b9d2dfa5966 /db | |
parent | 9de23248d8f3d6464d329b979ccfe98c23eb4aa3 (diff) | |
parent | f4e2865d2fabf55bb017f7f88fa2ef0d1c3d4fad (diff) | |
download | gitlab-ce-8d70ac008dbb43752e2c1f69530c4453eb8e0e2d.tar.gz |
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.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 1 |
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 |