diff options
author | Alessio Caiazza <acaiazza@gitlab.com> | 2019-05-31 09:59:36 +0000 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2019-05-31 09:59:36 +0000 |
commit | 724b5afbd99ab31242eed386d9169a1f1b5a7610 (patch) | |
tree | 46a00a2e87d440a106c11006ce2099c242af8293 /app/models/project_statistics.rb | |
parent | bc32249b30f294db242928e9f76a353d2e7e5b5e (diff) | |
download | gitlab-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.rb | 2 |
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 |