summaryrefslogtreecommitdiff
path: root/db/migrate/20130326142630_add_index_to_users_authentication_token.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20130326142630_add_index_to_users_authentication_token.rb')
-rw-r--r--db/migrate/20130326142630_add_index_to_users_authentication_token.rb5
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