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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/post_migrate/20200727100631_remove_again_gitlab_issue_tracker_service_records.rb')
-rw-r--r--db/post_migrate/20200727100631_remove_again_gitlab_issue_tracker_service_records.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/db/post_migrate/20200727100631_remove_again_gitlab_issue_tracker_service_records.rb b/db/post_migrate/20200727100631_remove_again_gitlab_issue_tracker_service_records.rb
deleted file mode 100644
index b61da82aef8..00000000000
--- a/db/post_migrate/20200727100631_remove_again_gitlab_issue_tracker_service_records.rb
+++ /dev/null
@@ -1,28 +0,0 @@
-# frozen_string_literal: true
-
-class RemoveAgainGitlabIssueTrackerServiceRecords < ActiveRecord::Migration[6.0]
- DOWNTIME = false
- BATCH_SIZE = 5000
-
- disable_ddl_transaction!
-
- class Service < ActiveRecord::Base
- include EachBatch
-
- self.table_name = 'services'
-
- def self.gitlab_issue_tracker_service
- where(type: 'GitlabIssueTrackerService')
- end
- end
-
- def up
- Service.each_batch(of: BATCH_SIZE) do |services|
- services.gitlab_issue_tracker_service.delete_all
- end
- end
-
- def down
- # no-op
- end
-end