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

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

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

  disable_ddl_transaction!

  def up
    cleanup_concurrent_column_rename :experiment_subjects, :group_id, :namespace_id
  end

  def down
    undo_cleanup_concurrent_column_rename :experiment_subjects, :group_id, :namespace_id
  end
end