How to use 2 different db (mysql and postgres) -ror
From Sandoz
->/models/albums_import.rb
- from freebase db -> postgres
class AlbumsImport < ActiveRecord::Base
establish_connection :postgres_development
end
->database.yml
- postgres_development:
- adapter: postgresql
- database: pull-freebase-data
- host: localhost
- username: postgres
- password: mysql
- pool: 5
- timeout: 5000
- reconnect: true