metu.life/db/migrate/20190917213523_add_remember...

9 lines
219 B

# 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