diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2013-03-26 07:34:32 -0700 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2013-06-14 22:07:09 +0500 |
commit | 43d2e7b1044ec5720f8a3d6e9cb3091d8d533dc4 (patch) | |
tree | 5bc186d90e77f512e584fafd4d966db27f8b55e8 /db/migrate | |
parent | 940c05086ee595fd5ea7f77a07b78bff14efb7e2 (diff) | |
download | gitlab-ce-43d2e7b1044ec5720f8a3d6e9cb3091d8d533dc4.tar.gz |
add db index for authentication_token column in users table
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20130326142630_add_index_to_users_authentication_token.rb | 5 |
1 files changed, 5 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 |