Sha256: 2bc23e6b8a984ff499fd51c1a88edd6442d27513832d2117ed44c3d70d3b52d9

Contents?: true

Size: 840 Bytes

Versions: 7

Compression:

Stored size: 840 Bytes

Contents

default: &default
  adapter: <%= @database == 'mysql' ? 'mysql2' : 'postgresql' %>
  encoding: <%= @database == 'mysql' ? 'utf8mb4' : 'unicode' %>
  pool: <%%= ENV["DB_POOL"] || 5  %>
  database: <%%= ENV['DB_NAME'] || '<%= @project_name %>_development' %>
<% if @database == 'mysql' -%>
  username: <%%= ENV['DB_USER'] || 'root' %>
<% else -%>
  username: <%%= ENV['DB_USER'] || ENV['USER'] %>
<% end -%>
  password: <%%= ENV['DB_PASS'] %>
  host: <%%= ENV["DB_HOST"] %>
  url: <%%= ENV['DATABASE_URL'] %> # takes higher precedence than other settings
  reconnect: true

development:
  <<: *default
  database: <%%= ENV['DB_NAME'] || '<%= @project_name %>_development' %>

test:
  <<: *default
  database: <%= @project_name %>_test

production:
  <<: *default
  database: <%= @project_name %>_production
  url: <%%= ENV['DATABASE_URL'] %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jets-2.3.11 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.3.10 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.3.9 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.3.8 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.3.7 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.3.6 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-2.3.5 lib/jets/commands/templates/skeleton/config/database.yml.tt