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