bde41ee866
- Namespace::Storagestatistics will persist root namespace statistics - Namespace::AggregationSchedule will save information when a new update to the namespace statistics needs to be scheduled Both tables use 'namespace_id' as primary key
10 lines
234 B
Ruby
10 lines
234 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Namespace::RootStorageStatistics < ApplicationRecord
|
|
self.primary_key = :namespace_id
|
|
|
|
belongs_to :namespace
|
|
has_one :route, through: :namespace
|
|
|
|
delegate :all_projects, to: :namespace
|
|
end
|