version with database. external postgres

This commit is contained in:
2025-11-20 22:39:35 +01:00
parent 7d1c95b0fc
commit c618201177
6 changed files with 25 additions and 62 deletions

15
config/database.yml Normal file
View File

@ -0,0 +1,15 @@
default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
development:
primary:
<<: *default
database: <%= ENV.fetch("DATABASE_URL") %>
production:
primary:
<<: *default
database: <%= ENV.fetch("DATABASE_URL") %>