summaryrefslogtreecommitdiff
path: root/scalelite/config/database.yml
blob: 80a0afd72f021e51ad7e52e5a8e6ffec435399d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
default: &default
  pool: <%= ENV.fetch('RAILS_MAX_THREADS') { 5 } %>
  timeout: 5000
  adapter: postgresql
  host: <%= ENV['DB_HOST'] %>
  username: <%= ENV['DB_USERNAME'] %>
  password: <%= ENV['DB_PASSWORD'] %>
  encoding: unicode

development:
  <<: *default
  database: scalelite_development

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  <<: *default
  database: scalelite_test

production:
  <<: *default
  database: <%= ENV['DB_NAME'] || 'scalelite' %>