summaryrefslogtreecommitdiff
path: root/app/models/project_statistics.rb
diff options
context:
space:
mode:
authorAlessio Caiazza <acaiazza@gitlab.com>2019-05-31 09:59:36 +0000
committerAndreas Brandl <abrandl@gitlab.com>2019-05-31 09:59:36 +0000
commit724b5afbd99ab31242eed386d9169a1f1b5a7610 (patch)
tree46a00a2e87d440a106c11006ce2099c242af8293 /app/models/project_statistics.rb
parentbc32249b30f294db242928e9f76a353d2e7e5b5e (diff)
downloadgitlab-ce-724b5afbd99ab31242eed386d9169a1f1b5a7610.tar.gz
Remove nils from project_statistics.packages_size
Now it defaults to 0
Diffstat (limited to 'app/models/project_statistics.rb')
-rw-r--r--app/models/project_statistics.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_statistics.rb b/app/models/project_statistics.rb
index 832c8417b5b..dd0654aec0b 100644
--- a/app/models/project_statistics.rb
+++ b/app/models/project_statistics.rb
@@ -48,7 +48,7 @@ class ProjectStatistics < ApplicationRecord
# older migrations fail due to non-existent attribute without this
def packages_size
- has_attribute?(:packages_size) ? super.to_i : 0
+ has_attribute?(:packages_size) ? super : 0
end
def update_storage_size