Rails ActiveStorage - accessing through Rails console

Multi tool use
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
)?
active_storage_blobs
active_storage_attachments
ActiveRecord::SchemaMigration
1 Answer
1
Rails is open source, fwiw.
Looks like it’d be ActiveStorage::Blob
and ActiveStorage::Attachment
.
ActiveStorage::Blob
ActiveStorage::Attachment
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.