Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails ActiveStorage - accessing through Rails console

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)?

like image 328
alexs333 Avatar asked Jul 03 '18 05:07

alexs333


1 Answers

Rails is open source, fwiw.

Looks like it’d be ActiveStorage::Blob and ActiveStorage::Attachment.

like image 162
Aleksei Matiushkin Avatar answered Sep 19 '22 15:09

Aleksei Matiushkin