Class: HistoricalOpenActivity
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- HistoricalOpenActivity
- Defined in:
- app/models/historical_open_activity.rb
Overview
== Schema Information
Table name: historical_open_activities
Database name: primary
id :integer not null, primary key
open_date :date not null
created_at :datetime not null
updated_at :datetime not null
activity_id :integer not null
assigned_resource_id :integer
Indexes
act_id_assi_resrc (activity_id,assigned_resource_id)
index_historical_open_activities_on_assigned_resource_id (assigned_resource_id)
index_historical_open_activities_on_open_date (open_date) USING brin
Foreign Keys
fk_rails_... (activity_id => activities.id) ON DELETE => cascade
fk_rails_... (assigned_resource_id => parties.id)
Belongs to collapse
Methods inherited from ApplicationRecord
ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation
Methods included from Models::EventPublishable
Instance Method Details
#activity ⇒ Activity
25 |
# File 'app/models/historical_open_activity.rb', line 25 belongs_to :activity, optional: true |
#assigned_resource ⇒ Employee
26 |
# File 'app/models/historical_open_activity.rb', line 26 belongs_to :assigned_resource, :class_name => "Employee", optional: true |