PERF: Add missing index on user_id for user_second_factors table.

This commit is contained in:
Guo Xiang Tan 2018-07-16 14:21:07 +08:00
parent 214dac05de
commit 6761f8ecbf
2 changed files with 9 additions and 0 deletions

View File

@ -31,3 +31,7 @@ end
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_user_second_factors_on_user_id (user_id)
#

View File

@ -0,0 +1,5 @@
class AddIndexUserIdOnUserSecondFactors < ActiveRecord::Migration[5.2]
def change
add_index :user_second_factors, :user_id
end
end