Class: ViewVisitsFact
- Inherits:
-
ApplicationViewRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ApplicationViewRecord
- ViewVisitsFact
- Defined in:
- app/models/view_visits_fact.rb
Overview
== Schema Information
Table name: view_visits_facts
Database name: primary
id :bigint
country_code :text
number_visits :bigint
state_code :text
unique_visitors :bigint
using_desktop :bigint
using_mobile :bigint
using_tablet :bigint
visit_date :date
website_can :bigint
website_us :bigint
company_id :integer
Indexes
index_view_visits_facts_on_company_id (company_id)
index_view_visits_facts_on_id (id) UNIQUE
Class Method Summary collapse
Methods inherited from ApplicationViewRecord
Methods inherited from ApplicationRecord
ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation
Methods included from Models::EventPublishable
Class Method Details
.refresh ⇒ Object
25 26 27 |
# File 'app/models/view_visits_fact.rb', line 25 def self.refresh Scenic.database.refresh_materialized_view(table_name, concurrently: true, cascade: false) end |