lib/rails/generators/humdrum/setup/templates/config/database.sql in humdrum-rails-0.1.1 vs lib/rails/generators/humdrum/setup/templates/config/database.sql in humdrum-rails-0.1.2
- old
+ new
@@ -1,59 +1,37 @@
-development:
+default: &default
adapter: <%= dbase %>
encoding: unicode
reconnect: false
- database: <%= dbase_name %>_development
pool: 5
- username: <%= db_username %>
- password: <%= db_password %>
+ timeout: 5000
host: localhost
port: 5432
-# 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:
- adapter: <%= dbase %>
- encoding: unicode
- reconnect: false
+development:
+ <<: *default
+ database: <%= dbase_name %>_development
+ username: <%= db_username %>
+ password: <%= db_password %>
+
+test: &test
+ <<: *default
database: <%= dbase_name %>_test
- pool: 5
username: <%= db_username %>
password: <%= db_password %>
- host: localhost
- port: 5432
staging:
- adapter: <%= dbase %>
- encoding: unicode
- reconnect: false
+ <<: *default
database: <%= dbase_name %>_staging
- pool: 5
username: <%= db_username %>
password: <%= db_password %>
- host: localhost
- port: 5432
-demo:
- adapter: <%= dbase %>
- encoding: unicode
- reconnect: false
- database: <%= dbase_name %>_demo
- pool: 5
- username: <%= db_username %>
- password: <%= db_password %>
- host: localhost
- port: 5432
-
production:
- adapter: <%= dbase %>
- encoding: unicode
- reconnect: false
- database: <%= dbase_name %>_demo
- pool: 5
+ <<: *default
+ database: <%= dbase_name %>_production
username: <%= db_username %>
password: <%= db_password %>
- host: localhost
- port: 5432
+
+cucumber:
+ <<: *test