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

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

class TruncateCiMirrorTables < Gitlab::Database::Migration[1.0]
  disable_ddl_transaction!

  def up
    execute('TRUNCATE TABLE ci_namespace_mirrors')
    execute('TRUNCATE TABLE ci_project_mirrors')
  end

  def down
    # noop
  end
end