ActiveStorage creates 2 tables active_storage_blobs
and active_storage_attachments
. I wonder if there is a way to access them easily through Rails console (i.e. schema migration internal table can be accessed by ActiveRecord::SchemaMigration
)?
Asked
Active
Viewed 1,812 times
6
![](../../users/profiles/872514.webp)
alexs333
- 10,543
- 9
- 46
- 82
1 Answers
12
Rails is open source, fwiw.
Looks like it’d be ActiveStorage::Blob
and ActiveStorage::Attachment
.
![](../../users/profiles/872514.webp)
alexs333
- 10,543
- 9
- 46
- 82
![](../../users/profiles/2035262.webp)
Aleksei Matiushkin
- 105,980
- 9
- 87
- 132