Today I’m proud to announce the first public release of our ActiveRecord database connection magic plugin: DbCharmer.
DB Charmer – ActiveRecord Connection Magic Plugin
DbCharmer is a simple yet powerful plugin for ActiveRecord that does a few things:
- Allows you to easily manage AR models’ connections
(
switch_connection_to
method) - Allows you to switch AR models’ default connections to a separate servers/databases
- Allows you to easily choose where your query should go
(
on_*
methods family) - Allows you to automatically send read queries to your slaves while masters would handle all the updates.
- Adds multiple databases migrations to ActiveRecord
Installation
There are two options when …
[Read more]