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