[index] index on users.remember_token

This commit is contained in:
Fosco Marotto
2021-01-17 11:13:39 -05:00
parent adf0e7ae72
commit e29925e534
2 changed files with 9 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
class AddIndexOnUsersRememberToken < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def change
add_index :users, :remember_token, algorithm: :concurrently
end
end