mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
PERF: Add index on user_id
to single_sign_on_records
.
This commit is contained in:
parent
fc5b2de85d
commit
ac004297fa
@ -24,4 +24,5 @@ end
|
||||
# Indexes
|
||||
#
|
||||
# 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
|
Loading…
Reference in New Issue
Block a user