Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## HOW TO CONNECT TO REMOTE DATABASE VIA LOCAL RAILS C
- ```bash
- ssh -vNgL 5433:postgres.intenal-remote.host:5432 <host>
- ```
- on database.yml
- ```yaml
- development:
- database: <name>
- adapter: postgresql
- encoding: unicode
- pool: 5
- username: postgres
- password: postgres
- host: localhost
- port: 5433
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement