diff options
Diffstat (limited to 'db/post_migrate/20220111102314_truncate_ci_mirror_tables.rb')
-rw-r--r-- | db/post_migrate/20220111102314_truncate_ci_mirror_tables.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/post_migrate/20220111102314_truncate_ci_mirror_tables.rb b/db/post_migrate/20220111102314_truncate_ci_mirror_tables.rb new file mode 100644 index 00000000000..795ec24f3bd --- /dev/null +++ b/db/post_migrate/20220111102314_truncate_ci_mirror_tables.rb @@ -0,0 +1,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 |