-
- Downloads
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
Showing
- app/models/namespace.rb 2 additions, 0 deletionsapp/models/namespace.rb
- app/models/namespace/aggregation_schedule.rb 7 additions, 0 deletionsapp/models/namespace/aggregation_schedule.rb
- app/models/namespace/root_storage_statistics.rb 10 additions, 0 deletionsapp/models/namespace/root_storage_statistics.rb
- db/migrate/20190531153110_create_namespace_root_storage_statistics.rb 22 additions, 0 deletions...0190531153110_create_namespace_root_storage_statistics.rb
- db/migrate/20190605184422_create_namespace_aggregation_schedules.rb 14 additions, 0 deletions.../20190605184422_create_namespace_aggregation_schedules.rb
- db/schema.rb 17 additions, 0 deletionsdb/schema.rb
- spec/factories/namespace/aggregation_schedules.rb 7 additions, 0 deletionsspec/factories/namespace/aggregation_schedules.rb
- spec/factories/namespace/root_storage_statistics.rb 7 additions, 0 deletionsspec/factories/namespace/root_storage_statistics.rb
- spec/factories/namespaces.rb 8 additions, 0 deletionsspec/factories/namespaces.rb
- spec/models/namespace/aggregation_schedule_spec.rb 7 additions, 0 deletionsspec/models/namespace/aggregation_schedule_spec.rb
- spec/models/namespace/root_storage_statistics_spec.rb 10 additions, 0 deletionsspec/models/namespace/root_storage_statistics_spec.rb
- spec/models/namespace_spec.rb 2 additions, 0 deletionsspec/models/namespace_spec.rb
app/models/namespace/aggregation_schedule.rb
0 → 100644
Please register or sign in to comment