Class: VisitPageDailyCount

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

Overview

Daily first-party visit totals keyed by the locale-less SiteMap path. Rows are
rebuilt atomically one calendar day at a time by
SeoVisitPageDailyRefreshWorker; rolling 30/90-day page totals read this
bounded table instead of repeatedly scanning Visit.

Constant Summary

Constants included from Models::Schedulable

Models::Schedulable::SIMPLE_FORM_OPTIONS

Instance Attribute Summary collapse

Method Summary

Methods inherited from ApplicationRecord

ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation

Methods included from Models::Schedulable

config

Methods included from Models::AfterCommittable

#after_commit

Methods included from Models::EventPublishable

#publish_event

Instance Attribute Details

#pathvoid (readonly)

This method returns an undefined value.

Validations:



9
# File 'app/models/visit_page_daily_count.rb', line 9

validates :visit_date, :path, presence: true

#visit_datevoid (readonly)

This method returns an undefined value.



9
# File 'app/models/visit_page_daily_count.rb', line 9

validates :visit_date, :path, presence: true

#visits_countvoid (readonly)

This method returns an undefined value.



11
# File 'app/models/visit_page_daily_count.rb', line 11

validates :visits_count, numericality: { only_integer: true, greater_than_or_equal_to: 0 }