Class: VisitPageDailyCount
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- VisitPageDailyCount
- 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
- #path ⇒ void readonly
- #visit_date ⇒ void readonly
- #visits_count ⇒ void readonly
Method Summary
Methods inherited from ApplicationRecord
ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation
Methods included from Models::Schedulable
Methods included from Models::AfterCommittable
Methods included from Models::EventPublishable
Instance Attribute Details
#path ⇒ void (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_date ⇒ void (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_count ⇒ void (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 } |