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

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

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

  def down
    remove_column :topics, :total_projects_count
  end
end