From 2a578876edbbc4f9afb064e148ea5f0a198ebeeb Mon Sep 17 00:00:00 2001 From: Ryan Arakawa Date: Tue, 1 Jul 2025 13:15:12 -0500 Subject: [PATCH] switch to postgres --- config/database.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/config/database.yml b/config/database.yml index 649bf03c..ec5eb459 100644 --- a/config/database.yml +++ b/config/database.yml @@ -4,16 +4,22 @@ default: &default pool: <%= ENV.fetch('RAILS_MAX_THREADS', 15).to_i + ENV.fetch('SIDEKIQ_THREADS', 5).to_i %> development: - adapter: sqlite3 - database: db/development.sqlite3 - pool: <%= ENV.fetch('RAILS_MAX_THREADS', 15).to_i + ENV.fetch('SIDEKIQ_THREADS', 5).to_i %> - timeout: 5000 + adapter: postgresql + encoding: unicode + database: docuseal_development + pool: 5 + username: postgres + password: postgres + host: localhost test: - adapter: sqlite3 - database: db/test.sqlite3 - pool: <%= ENV.fetch('RAILS_MAX_THREADS', 15).to_i + ENV.fetch('SIDEKIQ_THREADS', 5).to_i %> - timeout: 5000 + adapter: postgresql + encoding: unicode + database: docuseal_test + pool: 5 + username: postgres + password: postgres + host: localhost production: <% if !ENV['DATABASE_HOST'].to_s.empty? %>