Class: LegacyActivityResult

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

Overview

== Schema Information

Table name: activity_result_types_activity_types
Database name: primary

id :integer not null, primary key
activity_result_type_id :integer not null
activity_type_id :integer not null

Indexes

index_activity_result_types_activity_types (activity_result_type_id,activity_type_id)

Constant Summary

Constants included from Models::Schedulable

Models::Schedulable::SIMPLE_FORM_OPTIONS

Belongs to collapse

Methods inherited from ApplicationRecord

ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation

Methods included from Models::Schedulable

config

Methods included from Models::AfterCommittable

#after_commit

Methods included from Models::EventPublishable

#publish_event

Instance Method Details

#activity_result_typeActivityResultType?

Returns the activity result type this record belongs to.

Returns:



20
# File 'app/models/legacy_activity_result.rb', line 20

belongs_to :activity_result_type, optional: true

#activity_typeActivityType?

Returns the activity type this record belongs to.

Returns:

  • (ActivityType, nil)

    the activity type this record belongs to



18
# File 'app/models/legacy_activity_result.rb', line 18

belongs_to :activity_type, optional: true