Skip to content

Instantly share code, notes, and snippets.

@felipecabargas
Created August 8, 2014 20:32
Show Gist options
  • Save felipecabargas/41ec37aedb81b33711a4 to your computer and use it in GitHub Desktop.
Save felipecabargas/41ec37aedb81b33711a4 to your computer and use it in GitHub Desktop.
Database YML
localcommon: &localcommon
adapter: sqlite3
pool: 5
timeout: 5000
# config for postgres
common: &common
adapter: postgresql
encoding: unicode
username: postgres
# config for mysql
common2: &common2
adapter: mysql2
encoding: utf8
username: root
password: '123321'
test:
<<: *localcommon
database: db/test.sqlite3
development:
<<: *localcommon
database: db/development.sqlite3
#NOTE:The following configs is for file upload/download. If you do not touch them
#during daily development, just keep them unchanged.
#NOTE: postgres
#development:
# <<: *common
# database: letshire_development
#NOTE: mysql
#development:
# <<: *common2
# database: letshire_development
ci:
<<: *localcommon
database: db/test.sqlite3
production:
<<: *common
database: letshire_production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment