Slide 30
Slide 30 text
What is ActiveStorage::Attachment
A record in the database associating a blob to its owner
create_table "active_storage_attachments" do |t|
t.string "name", null: false
t.string "record_type", null: false
t.integer "record_id", null: false
t.integer "blob_id", null: false
t.index ["blob_id"]
t.index ["record_type", "record_id", "name", "blob_id"],
unique: true
end