debian-mirror-gitlab/db/migrate/20211006060254_add_topics_total_projects_count_cache.rb
2021-11-18 22:05:49 +05:30

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