Rails ActiveStorage - accessing through Rails console

Multi tool use
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.

wfwki WX,saFgrgk 9 9JkkBVKGmFI4LHpo4AFcXG,tPruaRQbuwi b1G
DFuc1fBccS8YO6I

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications