Skip to content

Instantly share code, notes, and snippets.

@gitDbits
Last active December 12, 2019 00:23
Show Gist options
  • Select an option

  • Save gitDbits/2ceedf53c6ba65ff883960edcdbe55f5 to your computer and use it in GitHub Desktop.

Select an option

Save gitDbits/2ceedf53c6ba65ff883960edcdbe55f5 to your computer and use it in GitHub Desktop.
Example Mysql config Rails
default: &default
adapter: mysql2
encoding: utf8
pool: 5
socket: /tmp/mysql.sock
development:
<<: *default
database: db_dev
username: root
password:
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *default
database: db_test
username: root
password:
production:
<<: *default
database: db_prod
username: root
password:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment