Skip to content

Instantly share code, notes, and snippets.

@kalpesh-fulpagare
Created May 29, 2013 12:52
Show Gist options
  • Save kalpesh-fulpagare/5670049 to your computer and use it in GitHub Desktop.
Save kalpesh-fulpagare/5670049 to your computer and use it in GitHub Desktop.
Sample database.yml file for Ruby on Rails app
# Postgres
development:
adapter: postgresql
encoding: utf8
database: text_development
username: postgres
password: root
host: localhost
# Sqlite
development:
adapter: sqlite3
database: db/test.sqlite3
pool: 5
timeout: 5000
# MySql
development:
adapter: mysql2
encoding: utf8
reconnect: false
pool: 5
database: test_dev
username: root
password: root
# Mongoid
development:
host: localhost
database: test_development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment