Sha256: 1029d8a2a0a6da53f3f40e340876d8534796b077c63288c18628a018f0eab82a

Contents?: true

Size: 844 Bytes

Versions: 55

Compression:

Stored size: 844 Bytes

Contents

default: &default
  adapter: <%= @database == 'mysql' ? 'mysql2' : 'postgresql' %>
  encoding: <%= @database == 'mysql' ? 'utf8mb4' : 'unicode' %>
  pool: <%%= ENV["DB_POOL"] || 5  %>
  database: <%%= ENV['DB_NAME'] || '<%= @database_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'] || '<%= @database_name %>_development' %>

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

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

Version data entries

55 entries across 55 versions & 2 rubygems

Version Path
jets-4.0.12 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-4.0.11 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-4.0.10 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-4.0.9 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-4.0.8 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-4.0.7 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-4.0.6 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-4.0.5 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-4.0.4 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-4.0.3 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-4.0.2 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-4.0.1 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-4.0.0 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-3.2.2 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-3.2.1 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-3.2.0 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-3.1.5 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-3.1.4 lib/jets/commands/templates/skeleton/config/database.yml.tt
jets-3.1.3 lib/jets/commands/templates/skeleton/config/database.yml.tt