Sha256: e67461b18d480b763d459632b7400eeb5dae55ee2703cb3fe9f628cc65ad8af6

Contents?: true

Size: 622 Bytes

Versions: 1

Compression:

Stored size: 622 Bytes

Contents

<% adapter = ENV.fetch('DB_ADAPTER', 'postgresql') %>
test:
  adapter:  <%= adapter %>
  database: ajax_datatables_rails
  encoding: utf8

<% if adapter == 'postgresql' %>
  host: '127.0.0.1'
  port: 5432
  username: 'postgres'
  password: 'postgres'
<% elsif adapter == 'mysql2' %>
  host: '127.0.0.1'
  port: 3306
  username: 'root'
  password: 'root'
<% elsif adapter == 'oracle_enhanced' %>
  host: '127.0.0.1/xe'
  username: <%= ENV.fetch('USER') %>
  password: <%= ENV.fetch('USER') %>
  database: 'xe'
<% elsif adapter == 'sqlite3' %>
  # database: ':memory:'
  database: db/ajax_datatables_rails.sqlite3
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ajax-datatables-rails-1.4.0 spec/dummy/config/database.yml