8

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.

saurabh
  • 6,687
  • 7
  • 42
  • 63
Arpit Vaishnav
  • 4,739
  • 6
  • 39
  • 57
  • 3
    Active storage does not support without active record. You can check the discussion here https://github.com/rails/rails/issues/31408#issuecomment-453823788 – punitcse Jun 04 '19 at 09:35

1 Answers1

1

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

saurabh
  • 6,687
  • 7
  • 42
  • 63