Remove ApplicationRecord base model#23
Conversation
|
I am curious as to why this was removed, as it would cause this not to work if using Rails' multi DB approach -- it would potentially go into a different database rather than the one we are connected to in ApplicationRecord at the time. I am looking into using this project and just noticed this -- thought I might reach out to let you know. Thanks for what looks to be good work! |
Thank you for your feedback! And to customise the connection options you would expect to reopen the class? ActiveStorageDB::ApplicationRecord.class_eval do
connects_to database: { writing: :main, reading: :read_only }
endI'm wondering if there are better options for it. |
No description provided.