Browse Source

database simplified

main
pvincent 7 months ago
parent
commit
fed116b3f5
  1. 12
      config/database.yml

12
config/database.yml

@ -1,18 +1,16 @@
---
default: &default
host: <%= ENV.include?('container_hostname')? 'ct1.lxd':'localhost' %>
database: &db-name easy-going-rails
user: *db-name
password: *db-name
adapter: postgresql
encoding: unicode
# For details on connection pooling, see Rails configuration guide
# https://guides.rubyonrails.org/configuring.html#database-pooling
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
host: <%= ENV.include?('container_hostname')? 'ct1.lxd':'localhost' %>
pool: 5
development:
<<: *default
database: &db-name easy-going-rails
user: *db-name
password: *db-name
test:
<<: *default
Loading…
Cancel
Save