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

20211018101034_add_tmp_project_id_column_to_namespaces.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cc73cb5047b7bf5b6590a939bb5a168ae737833f (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class AddTmpProjectIdColumnToNamespaces < Gitlab::Database::Migration[1.0]
  enable_lock_retries!

  def change
    # this is a temporary column to be able to batch insert records into namespaces table and then be able to link these
    # to projects table.
    add_column :namespaces, :tmp_project_id, :integer # rubocop: disable Migration/AddColumnsToWideTables
  end
end