Skip to content

Commit

Permalink
Merge pull request #2807 from prokopsimek/patch-6
Browse files Browse the repository at this point in the history
Update database.yml examples
  • Loading branch information
parndt committed Dec 11, 2014
2 parents a61b03f + 9bf1f46 commit ca697a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ development: &development
host: localhost
username: root
password:
database: your_local_database
database: <%= Rails.application.engine_name.gsub(/_application/,'').downcase %>_development

test: &test
adapter: mysql2
host: localhost
username: root
password:
database: your_test_database
database: <%= Rails.application.engine_name.gsub(/_application/,'').downcase %>_test

production: &production
adapter: mysql2
host: localhost
database: your_production_database
database: <%= Rails.application.engine_name.gsub(/_application/,'').downcase %>_production
username: your_production_database_login
password: your_production_database_password
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
development:
adapter: postgresql
encoding: unicode
database: refinery_database_development
database: <%= Rails.application.engine_name.gsub(/_application/,'').downcase %>_development
pool: 5
username: postgres
password: postgres
Expand All @@ -42,7 +42,7 @@ development:
test:
adapter: postgresql
encoding: unicode
database: refinery_database_test
database: <%= Rails.application.engine_name.gsub(/_application/,'').downcase %>_test
pool: 5
username: postgres
password: postgres
Expand All @@ -51,7 +51,7 @@ test:
production:
adapter: postgresql
encoding: unicode
database: refinery_database_production
database: <%= Rails.application.engine_name.gsub(/_application/,'').downcase %>_production
pool: 5
username: postgres
password: postgres
Expand Down

0 comments on commit ca697a3

Please sign in to comment.