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

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

class AddTopicsNonPrivateProjectsCount < Gitlab::Database::Migration[1.0]
  def up
    add_column :topics, :non_private_projects_count, :bigint, null: false, default: 0
  end

  def down
    remove_column :topics, :non_private_projects_count
  end
end