Class: Namespace::RootStorageStatistics

Inherits:
ApplicationRecord show all
Defined in:
app/models/namespace/root_storage_statistics.rb

Constant Summary collapse

SNIPPETS_SIZE_STAT_NAME =
'snippets_size'.freeze
STATISTICS_ATTRIBUTES =
%W(
  storage_size
  repository_size
  wiki_size
  lfs_objects_size
  build_artifacts_size
  packages_size
  #{SNIPPETS_SIZE_STAT_NAME}
  pipeline_artifacts_size
).freeze

Instance Method Summary collapse

Methods inherited from ApplicationRecord

at_most, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, underscore, without_order

Instance Method Details

#recalculate!Object


25
26
27
# File 'app/models/namespace/root_storage_statistics.rb', line 25

def recalculate!
  update!(merged_attributes)
end