Is there a efficient way of using multiple databases in a Rails application. I saw DB Charmer but, it did not work with 3.2.8 and even in Rails 3.2.3 it gave problems. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On 29 August 2012 12:31, Karthikeyan A k <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Is there a efficient way of using multiple databases in a Rails > application. I saw DB Charmer but, it did not work with 3.2.8 and even > in Rails 3.2.3 it gave problems.Is using establish_connection inefficient? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Nope, what I am thinking is we need to migrate, the two databases need different set of tables. I am having a hard time. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On 29 August 2012 13:54, Karthikeyan A k <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Nope, what I am thinking is we need to migrate, the two databases need > different set of tables. I am having a hard time.Ah, ok, a subject line and posting that asked for the best way to handle migration of multiple databases might have been more useful. Sorry I have never done that, but googling for rails migrate multiple databases yields some likely looking hits. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
There is a gem called DB charmer, but does not work :-( -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
You can try the following, so far it has worked for me on rails 3.2.8 Grab the gem source code from 1. git clone https://github.com/kovyrin/db-charmer.git Modify the dependency inside the gemspec file, instead of <= 3.2.3 edit to ~> 3.2.3 2. vim db-charmer.gemspec 3. s.add_dependency ''activesupport'', ''~> 3.2.3'' s.add_dependency ''activerecord'', ''~> 3.2.3'' Build the Gem. 4. gem build db-charmer.gemspec Install the newly built gem. (You should replace the old one after with gem clean) 5. gem install db-charmer-1.7.1.gem -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
We use Octopus https://github.com/tchandy/octopus , its quiet good enough -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.