Greetings all,
I was wondering if there is currently a way in Rails 6 to configure a database connection as read-only? If not, is this is a feature that is currently planned for the 6.0 release?
Thanks,
-Dan
Greetings all,
I was wondering if there is currently a way in Rails 6 to configure a database connection as read-only? If not, is this is a feature that is currently planned for the 6.0 release?
Thanks,
-Dan
Yes, you can set replica: true in the database.yml file.
More details here: https://edgeguides.rubyonrails.org/active_record_multiple_databases.html
Jeff