Class: ViewFinancialAccountBalance
- Inherits:
-
ApplicationViewRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ApplicationViewRecord
- ViewFinancialAccountBalance
- Defined in:
- app/models/view_financial_account_balance.rb
Overview
== Schema Information
Table name: view_financial_account_balances
Database name: primary
id :bigint
account_name :string
account_number :integer
beginning_balance_amount :float
business_unit :integer
month :integer
monthly_amount :decimal(, )
year :integer
account_id :integer
company_id :integer
Indexes
index_view_financial_account_balances_on_account_id (account_id)
index_view_financial_account_balances_on_account_number (account_number)
index_view_financial_account_balances_on_company_id (company_id)
index_view_financial_account_balances_on_id (id) UNIQUE
index_view_financial_account_balances_on_month (month)
index_view_financial_account_balances_on_year (year)
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
27 28 29 |
# File 'app/models/view_financial_account_balance.rb', line 27 def self.refresh Scenic.database.refresh_materialized_view(table_name, concurrently: true, cascade: false) end |