mirror of
https://github.com/discourse/discourse.git
synced 2025-06-08 00:27:32 +08:00
PERF: Add index on user_id
to single_sign_on_records
.
This commit is contained in:
@ -24,4 +24,5 @@ end
|
|||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# index_single_sign_on_records_on_external_id (external_id) UNIQUE
|
# index_single_sign_on_records_on_external_id (external_id) UNIQUE
|
||||||
|
# index_single_sign_on_records_on_user_id (user_id)
|
||||||
#
|
#
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddIndexOnUserIdToSingleSignOnRecords < ActiveRecord::Migration[5.2]
|
||||||
|
def change
|
||||||
|
add_index :single_sign_on_records, :user_id
|
||||||
|
end
|
||||||
|
end
|
Reference in New Issue
Block a user