Add users remember_token index (#11881)
parent
0627252b30
commit
0e6390753d
@ -0,0 +1,9 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
class AddRememberTokenIndex < ActiveRecord::Migration[5.2]
|
||||||
|
disable_ddl_transaction!
|
||||||
|
|
||||||
|
def change
|
||||||
|
add_index :users, :remember_token, algorithm: :concurrently, unique: true
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue