Class: ViewTechProductivity
- Inherits:
-
ApplicationViewRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ApplicationViewRecord
- ViewTechProductivity
- Defined in:
- app/models/view_tech_productivity.rb
Overview
== Schema Information
Table name: view_tech_productivities
Database name: primary
id :bigint
accs_created :bigint
act_cmp_created :bigint
business_day :integer
comm_sent :bigint
date :date
day_off :float
department :string(30)
employee_name :string(255)
opp_created :bigint
ord_created :bigint
rmas_created :bigint
sc_created :bigint
sms :decimal(, )
employee_id :integer
Indexes
index_view_tech_productivities_on_date (date)
index_view_tech_productivities_on_department (department)
index_view_tech_productivities_on_employee_id (employee_id)
index_view_tech_productivities_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
30 31 32 |
# File 'app/models/view_tech_productivity.rb', line 30 def self.refresh Scenic.database.refresh_materialized_view(table_name, concurrently: false, cascade: false) end |