diff options
author | Alessio Caiazza <acaiazza@gitlab.com> | 2019-05-02 16:04:15 +0000 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2019-05-02 16:04:15 +0000 |
commit | d9b383cc3681c4ae6fe0dbef20a3d1089e48e139 (patch) | |
tree | 8c1a00a07faa120c6fbaacc389fa9266cdf306db /db/migrate | |
parent | 37606e666736c9686054ee5155e3d2d21eb1a0c9 (diff) | |
download | gitlab-ce-d9b383cc3681c4ae6fe0dbef20a3d1089e48e139.tar.gz |
Add packages_size to ProjectStatistics
This new field will allow to keep track of the storage used by the
packages features, it provides also aggregation at namespace level.
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20190415095825_add_packages_size_to_project_statistics.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20190415095825_add_packages_size_to_project_statistics.rb b/db/migrate/20190415095825_add_packages_size_to_project_statistics.rb new file mode 100644 index 00000000000..99625981563 --- /dev/null +++ b/db/migrate/20190415095825_add_packages_size_to_project_statistics.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class AddPackagesSizeToProjectStatistics < ActiveRecord::Migration[5.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def change + add_column :project_statistics, :packages_size, :bigint + end +end |