about summary refs log tree commit diff
path: root/db/migrate/20190917213523_add_remember_token_index.rb
blob: c5b41ce644651cfe27a9ab3a3f9f0021da1063e3 (plain) (blame)
1
2
3
4
5
6
7
8
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