HOW TO CONNECT TO REMOTE DATABASE VIA LOCAL RAILS C ssh -vNgL 5433:postgres.intenal-remote.host:5432 <host> on database.yml development: database: <name> adapter: postgresql encoding: unicode pool: 5 username: postgres password: postgres host: localhost port: 5433