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

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

class TrackUsersDeletes < Gitlab::Database::Migration[1.0]
  include Gitlab::Database::MigrationHelpers::LooseForeignKeyHelpers

  enable_lock_retries!

  def up
    track_record_deletions(:users)
  end

  def down
    untrack_record_deletions(:users)
  end
end