class Attachment

Ruby on Rails 6.0.6

Since v5.2.8.1

Available in: v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Attachments associate records with blobs. Usually that’s a one record-many blobs relationship, but it is possible to associate many different records with the same blob. A foreign-key constraint on the attachments table prevents blobs from being purged if they’re still attached to any records.

Inherits from

ActiveRecord::Base

Methods (defined here)

Private methods

(4) Implementation detail — not part of the public API.

Methods (inherited)

From ActiveModel::Conversion (4)
From ActiveModel::Naming (7)
From ActiveRecord::Aggregations::ClassMethods (1)
From ActiveRecord::AttributeMethods (9)
From ActiveRecord::AutosaveAssociation (6)
From ActiveRecord::ConnectionHandling (13)
From ActiveRecord::Core (31)
From ActiveRecord::Enum (1)
From ActiveRecord::Inheritance (1)
From ActiveRecord::Integration (7)
From ActiveRecord::Locking::Pessimistic (2)
From ActiveRecord::ModelSchema (14)
From ActiveRecord::NoTouching (1)
From ActiveRecord::Persistence (25)
From ActiveRecord::QueryCache::ClassMethods (2)
From ActiveRecord::Querying (2)
From ActiveRecord::Validations (4)
From ActiveSupport::Benchmarkable (1)
From ActiveSupport::DescendantsTracker (7)
From Object (17)
From ActiveModel::AttributeAssignment (2)
From ActiveModel::AttributeMethods (4)
From ActiveModel::Translation (3)
From ActiveModel::Validations (6)
From ActiveRecord::AttributeMethods::BeforeTypeCast (2)
From ActiveRecord::AttributeMethods::Dirty (13)
From ActiveRecord::AttributeMethods::PrimaryKey (7)
From ActiveRecord::AttributeMethods::Query (1)
From ActiveRecord::AttributeMethods::Read (2)
From ActiveRecord::AttributeMethods::Write (1)
From ActiveRecord::TestFixtures (4)
From ActiveSupport::Autoload (6)
From ActiveSupport::Concern (2)
From ActiveModel::Callbacks (1)
From ActiveModel::Dirty (9)
From ActiveModel::Validations::HelperMethods (10)
From ActiveSupport::Callbacks (1)

Type at least 2 characters to search.

↑↓ navigate · open · esc close