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

20200312134637_backfill_environment_id_on_deployment_merge_requests.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 77cb1ae85088f17f6f5c8ebfb2576012078e2ec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# frozen_string_literal: true

class BackfillEnvironmentIdOnDeploymentMergeRequests < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    # no-op

    # this migration is deleted because there is no foreign key for
    # deployments.environment_id and this caused a failure upgrading
    # deployments_merge_requests.environment_id
    #
    # Details on the following issues:
    #  * https://gitlab.com/gitlab-org/gitlab/-/issues/217191
    #  * https://gitlab.com/gitlab-org/gitlab/-/issues/26229
  end

  def down
    # no-op

    # this migration is designed to delete duplicated data
  end
end