Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActiveStorage without ActiveRecord rails 6

Is it possible to add ActiveStorage on rails 6 without adding ActiveRecord I am using API application having only mongoDB database. Now, as I have observed that FSGrid which actually a good option, having a database size issue and we want physical file available on S3.

like image 329
Arpit Vaishnav Avatar asked Jun 03 '19 09:06

Arpit Vaishnav


Video Answer


1 Answers

Sadly, it's still not possible now in April 2020.

From Mongodb Docs:

At this time ActiveStorage requires ActiveRecord and is not usable with Mongoid.

MongoDB Doc Image They are not working on it and suggest people to try to implement it with the current API as discussed here

like image 156
saurabh Avatar answered Nov 09 '22 22:11

saurabh