11 lines
271 B
Ruby
11 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
|