Class: ViewVisitsDetailFact

Inherits:
ApplicationViewRecord show all
Defined in:
app/models/view_visits_detail_fact.rb

Overview

== Schema Information

Table name: view_visits_detail_facts
Database name: primary

id :bigint
code :integer
detail :string
values :bigint
visit_date :date
company_id :integer

Indexes

index_view_visits_detail_facts_on_company_id (company_id)
index_view_visits_detail_facts_on_id (id) UNIQUE

Class Method Summary collapse

Methods inherited from ApplicationViewRecord

create, create!, #readonly?

Methods inherited from ApplicationRecord

ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation

Methods included from Models::EventPublishable

#publish_event

Class Method Details

.refreshObject



19
20
21
# File 'app/models/view_visits_detail_fact.rb', line 19

def self.refresh
  Scenic.database.refresh_materialized_view(table_name, concurrently: true, cascade: false)
end