Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20221028022627_add_index_on_password_last_changed_at_to_user_details.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8314767ade19d0db7a453b7ae35f75ab8169b220 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class AddIndexOnPasswordLastChangedAtToUserDetails < Gitlab::Database::Migration[2.0]
  INDEX_NAME = 'index_user_details_on_password_last_changed_at'

  disable_ddl_transaction!

  def up
    add_concurrent_index :user_details, :password_last_changed_at, name: INDEX_NAME, comment: 'JiHu-specific index'
  end

  def down
    remove_concurrent_index_by_name :user_details, INDEX_NAME
  end
end