gitlab-org--gitlab-foss/app/models/namespace/root_storage_statistics.rb
Mayra Cabrera bde41ee866 Add two new ActiveRecord models
- 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
2019-06-25 09:54:47 -05:00

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