PERF: Add index on `user_id` to `single_sign_on_records`.

This commit is contained in:
Guo Xiang Tan 2019-01-30 09:33:53 +08:00
parent fc5b2de85d
commit ac004297fa
2 changed files with 6 additions and 0 deletions

View File

@ -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)
#

View File

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