RoR = 2.3.11
Ruby = 1.8.7
Gem = 1.3.7
I have one database (call it “First”) with 4 tables. And I Have another database (call this database "Second"), (with another password). I want take emails (field) from Second and table if there are any updates was and inserting into First database.
Question: How I can do it?
You can define different databases in your database.yml.
and then connect your models to different databases using
ActiveRecord::Base.establish_connectionI added a simple method called sync that can be a starting point for your synchronisation issue,