lib/generators/recipes_matic/templates/config/deploy/recipes/templates/database.yml.erb in recipes_matic-1.1.0 vs lib/generators/recipes_matic/templates/config/deploy/recipes/templates/database.yml.erb in recipes_matic-1.2.0
- old
+ new
@@ -1,11 +1,22 @@
-<%= rails_env %>:
+development: &default
adapter: postgresql
- username: <%= postgresql_user %>
- password: <%= postgresql_password %>
- database: <%= postgresql_database %>
+ username: <%= fetch(:postgresql_user) %>
+ password: <%= fetch(:postgresql_password) %>
encoding: utf8
min_messages: warning
pool: 5
timeout: 5000
- host: <%= postgresql_host %>
- port: <%= postgresql_port %>
+ host: <%= fetch(:postgresql_host) %>
+ port: <%= fetch(:postgresql_port) %>
+
+test:
+ <<: *default
+ database: <%= fetch(:postgresql_database) %>_test
+
+production:
+ <<: *default
+ database: <%= fetch(:postgresql_database) %>_production
+
+staging:
+ <<: *default
+ database: <%= fetch(:postgresql_database) %>_staging
\ No newline at end of file