20190917213523_add_remember_token_index.rb 219 B

123456789
  1. # frozen_string_literal: true
  2. class AddRememberTokenIndex < ActiveRecord::Migration[5.2]
  3. disable_ddl_transaction!
  4. def change
  5. add_index :users, :remember_token, algorithm: :concurrently, unique: true
  6. end
  7. end