Skip to content

Instantly share code, notes, and snippets.

@aergonaut
Last active January 3, 2016 09:19
Show Gist options
  • Save aergonaut/8441741 to your computer and use it in GitHub Desktop.
Save aergonaut/8441741 to your computer and use it in GitHub Desktop.
# MySQL. Versions 4.1 and 5.0 are recommended.
#
# Install the MySQL driver:
# gem install mysql2
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development: &dev
adapter: mysql2
encoding: utf8
reconnect: false
database: <%= `git rev-parse --abbrev-ref HEAD`.gsub('-', '_') %>
pool: 5
username: root
password:
socket: /tmp/mysql.sock
production:
<<: *dev
coupa_connect_development: &coupa_connect
adapter: mysql2
encoding: utf8
reconnect: false
database: coupa_connect
pool: 5
username: root
password:
socket: /tmp/mysql.sock
coupa_connect_production:
<<: *coupa_connect
coupa_connect_test:
<<: *coupa_connect
# 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: &test
adapter: mysql2
encoding: utf8
reconnect: false
database: coupa_test
pool: 5
username: root
password:
socket: /tmp/mysql.sock
cucumber:
<<: *test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment