Skip to content

Instantly share code, notes, and snippets.

@pawelztef
Last active October 11, 2017 05:06
Show Gist options
  • Select an option

  • Save pawelztef/eb3f1e6e4eb1244b4b428dc69dc8f4b7 to your computer and use it in GitHub Desktop.

Select an option

Save pawelztef/eb3f1e6e4eb1244b4b428dc69dc8f4b7 to your computer and use it in GitHub Desktop.
ruby on rails database configuration exemples
default: &default
adapter: mysql2
encoding: utf8
pool: 5
username:
password:
socket: /var/run/mysqld/mysqld.sock
development:
<<: *default
database:
production:
<<: *default
database:
development:
adapter: postgresql
encoding: unicode
database:
pool: 5
username: postgres
password: postgres
min_messages: warning
test:
adapter: postgresql
encoding: unicode
database:
pool: 5
username: postgres
password: postgres
min_messages: warning
production:
adapter: postgresql
encoding: unicode
database:
pool: 5
username: postgres
password: postgres
min_messages: warning
development:
adapter: sqlite3
database: db/development.sqlite3
timeout: 5000
test:
adapter: sqite3
database: db/test.sqlite3
timeout: 5000
production:
adapter: sqlite3
database: db/production.sqlite3
timeout: 5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment