switch to postgres

pull/501/head
Ryan Arakawa 4 months ago
parent 0672cd2cb4
commit 2a578876ed

@ -4,16 +4,22 @@ default: &default
pool: <%= ENV.fetch('RAILS_MAX_THREADS', 15).to_i + ENV.fetch('SIDEKIQ_THREADS', 5).to_i %> pool: <%= ENV.fetch('RAILS_MAX_THREADS', 15).to_i + ENV.fetch('SIDEKIQ_THREADS', 5).to_i %>
development: development:
adapter: sqlite3 adapter: postgresql
database: db/development.sqlite3 encoding: unicode
pool: <%= ENV.fetch('RAILS_MAX_THREADS', 15).to_i + ENV.fetch('SIDEKIQ_THREADS', 5).to_i %> database: docuseal_development
timeout: 5000 pool: 5
username: postgres
password: postgres
host: localhost
test: test:
adapter: sqlite3 adapter: postgresql
database: db/test.sqlite3 encoding: unicode
pool: <%= ENV.fetch('RAILS_MAX_THREADS', 15).to_i + ENV.fetch('SIDEKIQ_THREADS', 5).to_i %> database: docuseal_test
timeout: 5000 pool: 5
username: postgres
password: postgres
host: localhost
production: production:
<% if !ENV['DATABASE_HOST'].to_s.empty? %> <% if !ENV['DATABASE_HOST'].to_s.empty? %>

Loading…
Cancel
Save