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

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

class AddOrganizationIdToProject < Gitlab::Database::Migration[2.1]
  DEFAULT_ORGANIZATION_ID = 1

  enable_lock_retries!

  def change
    add_column :projects, :organization_id, :bigint, default: DEFAULT_ORGANIZATION_ID, null: true # rubocop:disable Migration/AddColumnsToWideTables
  end
end