Sha256: 898c64be6df89528dc878c5cc0383231c89a434186a54ad6d7139a9ff5697fe4
Contents?: true
Size: 813 Bytes
Versions: 1
Compression:
Stored size: 813 Bytes
Contents
<% if ENV["DATABASE"] == "mysql" %> test: adapter: mysql2 database: gutentag username: <%= ENV.fetch("DB_USERNAME", "root") %> <% if ENV["DB_HOST"] %> host: <%= ENV["DB_HOST"] %> <% end %> <% if ENV["DB_PASSWORD"] %> password: <%= ENV["DB_PASSWORD"] %> <% end %> <% if ENV["DB_PORT"] %> port: <%= ENV["DB_PORT"] %> <% end %> <% elsif ENV["DATABASE"] == "postgres" %> test: adapter: postgresql database: gutentag <% if ENV["DB_HOST"] %> host: <%= ENV["DB_HOST"] %> <% end %> <% if ENV["DB_USERNAME"] %> username: <%= ENV["DB_USERNAME"] %> <% end %> <% if ENV["DB_PASSWORD"] %> password: <%= ENV["DB_PASSWORD"] %> <% end %> <% if ENV["DB_PORT"] %> port: <%= ENV["DB_PORT"] %> <% end %> <% else %> test: adapter: sqlite3 database: db/gutentag.sqlite <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gutentag-2.6.2 | spec/internal/config/database.yml |