Is it possible to use concurrent databases in one rails application?
With AR I can use establish_connection method inside a model. Is it possible with datamapper?
Is it possible to use concurrent databases in one rails application? With AR I
Share
There is an analogous feature in
Datamapper. This snippet from this cheatsheet shows how.As you can also see there the
:repositoryargument also changes the source database for many of the DM commands.