Class: FeedHistory

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

Overview

== Schema Information

Table name: feed_histories
Database name: primary

id :integer not null, primary key
file_name :string(255)
notes :text
result :string(255) not null
created_at :datetime
updated_at :datetime
communication_id :integer
feed_id :integer not null
upload_id :integer

Indexes

feed_histories_communication_id_idx (communication_id)

Foreign Keys

fk_rails_... (communication_id => communications.id) ON DELETE => cascade

Belongs to collapse

Methods inherited from ApplicationRecord

ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation

Methods included from Models::EventPublishable

#publish_event

Instance Method Details

#communicationCommunication



28
# File 'app/models/feed_history.rb', line 28

belongs_to :communication, optional: true

#feedFeed

Returns:

See Also:



26
# File 'app/models/feed_history.rb', line 26

belongs_to :feed, touch: true, optional: true

#uploadUpload

Returns:

See Also:



27
# File 'app/models/feed_history.rb', line 27

belongs_to :upload, dependent: :destroy, optional: true