Class: VisitEvent
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- VisitEvent
- Defined in:
- app/models/visit_event.rb
Overview
== Schema Information
Table name: visit_events
Database name: primary
id :bigint not null, primary key
name :string
properties :jsonb
time :datetime
user_id :integer
visit_id :bigint
Indexes
index_visit_events_on_visit_id (visit_id) USING hash
Foreign Keys
fk_rails_... (visit_id => visits.id)
Constant Summary
Constants included from Models::Schedulable
Models::Schedulable::SIMPLE_FORM_OPTIONS
Belongs to collapse
-
#user ⇒ Party?
The user this record belongs to.
-
#visit ⇒ Visit
The visit this record belongs to.
Methods inherited from ApplicationRecord
ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation
Methods included from Models::Schedulable
Methods included from Models::AfterCommittable
Methods included from Models::EventPublishable
Instance Method Details
#user ⇒ Party?
Returns the user this record belongs to.
27 |
# File 'app/models/visit_event.rb', line 27 belongs_to :user, class_name: 'Party', inverse_of: :visit_events, optional: true |
#visit ⇒ Visit
Returns the visit this record belongs to.
25 |
# File 'app/models/visit_event.rb', line 25 belongs_to :visit, inverse_of: :visit_events |