Class: Gitlab::BackgroundMigration::BackfillProjectStatisticsStorageSizeWithRecentSize::Project

Inherits:
ApplicationRecord
  • Object
show all
Includes:
Routable
Defined in:
lib/gitlab/background_migration/backfill_project_statistics_storage_size_with_recent_size.rb

Constant Summary

Constants inherited from ApplicationRecord

ApplicationRecord::MAX_PLUCK

Constants included from ResetOnUnionError

ResetOnUnionError::MAX_RESET_PERIOD

Instance Method Summary collapse

Methods included from Routable

#build_full_path, find_by_full_path, #full_name, #full_path, #full_path_components, optimize_routable_enabled?, #owned_by?, #parent_loaded?, #route_loaded?

Methods inherited from ApplicationRecord

cached_column_list, #create_or_load_association, declarative_enum, default_select_columns, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, #readable_by?, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, #to_ability_name, underscore, where_exists, where_not_exists, with_fast_read_statement_timeout, without_order

Methods included from SensitiveSerializableHash

#serializable_hash

Instance Method Details

#repositoryObject



38
39
40
# File 'lib/gitlab/background_migration/backfill_project_statistics_storage_size_with_recent_size.rb', line 38

def repository
  Gitlab::GlRepository::PROJECT.repository_for(self)
end

#storageObject



42
43
44
# File 'lib/gitlab/background_migration/backfill_project_statistics_storage_size_with_recent_size.rb', line 42

def storage
  Storage::Hashed.new(self)
end