summaryrefslogtreecommitdiff
path: root/db/migrate/20211018101034_add_tmp_project_id_column_to_namespaces.rb
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