lib/generators/eivo/templates/config/database.example.yml in eivo-rails-0.1.2 vs lib/generators/eivo/templates/config/database.example.yml in eivo-rails-0.1.3
- old
+ new
@@ -1,24 +1,17 @@
default: &default
adapter: postgresql
encoding: unicode
- pool: <%%= ENV.fetch('DB_POOL') { 5 } %>
- host: db
- username: postgres
- variables:
- statement_timeout: <%%= ENV.fetch('DB_STATEMENT_TIMEOUT') { 10000 } %>
-
+ pool: <%= ENV.fetch('DATABASE_POOL') { 5 } %>
+ url: <%= ENV['DATABASE_URL'] %>
+
development:
<<: *default
- database: <%= @application.parameterize %>_development
test:
<<: *default
- database: <%= @application.parameterize %>_test
staging:
<<: *default
- database: <%= @application.parameterize %>_staging
production:
<<: *default
- database: <%= @application.parameterize %>