mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PERF: Add index on email_tokens.token_hash
This commit is contained in:
committed by
Alan Guo Xiang Tan
parent
4e67297a7c
commit
9a6ec1d0c6
@@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateIndexOnEmailTokensTokenHash < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_index :email_tokens, :token_hash, unique: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user