Class: QeAccessStatistic

Inherits:
ApplicationRecord show all
Defined in:
app/models/qe_access_statistic.rb

Overview

== Schema Information

Table name: qe_access_statistics
Database name: primary

id :integer not null, primary key
access_type :string(255)
referer :string(255)
created_at :datetime
updated_at :datetime
qe_data_statistic_id :integer
quick_estimator_id :integer

Indexes

index_qe_access_statistics_on_access_type (access_type)
index_qe_access_statistics_on_qe_data_statistics_id (qe_data_statistic_id)
index_qe_access_statistics_on_quick_estimator_id (quick_estimator_id)

Constant Summary

Constants included from Schedulable

Schedulable::SIMPLE_FORM_OPTIONS

Instance Attribute Summary collapse

Belongs to collapse

Methods inherited from ApplicationRecord

ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation

Methods included from Schedulable

config

Methods included from Models::AfterCommittable

#after_commit

Methods included from Models::EventPublishable

#publish_event

Instance Attribute Details

#access_typeObject (readonly)



24
# File 'app/models/qe_access_statistic.rb', line 24

validates :quick_estimator_id, :access_type, presence: true

#quick_estimator_idObject (readonly)



24
# File 'app/models/qe_access_statistic.rb', line 24

validates :quick_estimator_id, :access_type, presence: true

Instance Method Details

#qe_data_statisticQeDataStatistic



23
# File 'app/models/qe_access_statistic.rb', line 23

belongs_to :qe_data_statistic, optional: true

#quick_estimatorQuickEstimator



22
# File 'app/models/qe_access_statistic.rb', line 22

belongs_to :quick_estimator, optional: true