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/migrate/20201023114628_create_merge_request_cleanup_schedules.rb')
-rw-r--r--db/migrate/20201023114628_create_merge_request_cleanup_schedules.rb27
1 files changed, 0 insertions, 27 deletions
diff --git a/db/migrate/20201023114628_create_merge_request_cleanup_schedules.rb b/db/migrate/20201023114628_create_merge_request_cleanup_schedules.rb
deleted file mode 100644
index f63738682b1..00000000000
--- a/db/migrate/20201023114628_create_merge_request_cleanup_schedules.rb
+++ /dev/null
@@ -1,27 +0,0 @@
-# frozen_string_literal: true
-
-class CreateMergeRequestCleanupSchedules < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- def up
- with_lock_retries do
- create_table :merge_request_cleanup_schedules, id: false do |t|
- t.references :merge_request, primary_key: true, index: { unique: true }, null: false, foreign_key: { on_delete: :cascade }
- t.datetime_with_timezone :scheduled_at, null: false
- t.datetime_with_timezone :completed_at, null: true
-
- t.timestamps_with_timezone
-
- t.index :scheduled_at, where: 'completed_at IS NULL', name: 'index_mr_cleanup_schedules_timestamps'
- end
- end
- end
-
- def down
- with_lock_retries do
- drop_table :merge_request_cleanup_schedules
- end
- end
-end