Add users remember_token index (#11881)
This commit is contained in:
parent
0627252b30
commit
0e6390753d
2 changed files with 11 additions and 1 deletions
9
db/migrate/20190917213523_add_remember_token_index.rb
Normal file
9
db/migrate/20190917213523_add_remember_token_index.rb
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue