gitlab-org--gitlab-foss/db/migrate/20211006060254_add_topics_t...

12 lines
271 B
Ruby

# 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