mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PERF: Add missing index on user_id
for user_second_factors
table.
This commit is contained in:
parent
214dac05de
commit
6761f8ecbf
@ -31,3 +31,7 @@ end
|
|||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
#
|
#
|
||||||
|
# Indexes
|
||||||
|
#
|
||||||
|
# index_user_second_factors_on_user_id (user_id)
|
||||||
|
#
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddIndexUserIdOnUserSecondFactors < ActiveRecord::Migration[5.2]
|
||||||
|
def change
|
||||||
|
add_index :user_second_factors, :user_id
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user