add tests for the Ruby backend

This commit is contained in:
2026-10-12 08:20:32 +03:00
parent d6efb46f87
commit e612dbfa23
11 changed files with 358 additions and 25 deletions
+16 -17
View File
@@ -20,21 +20,20 @@ test:
<<: *default
database: storage/test.sqlite3
# Store production database in the storage/ directory, which by default
# is mounted as a persistent Docker volume in config/deploy.yml.
# PostgreSQL for production.
#
# Configure via DATABASE_URL environment variable:
# postgresql://user:password@host:5432/database
#
# Or via individual variables:
# DB_NAME, DB_USER, DB_PASSWORD, DB_HOST, DB_PORT
#
production:
primary:
<<: *default
database: storage/production.sqlite3
cache:
<<: *default
database: storage/production_cache.sqlite3
migrations_paths: db/cache_migrate
queue:
<<: *default
database: storage/production_queue.sqlite3
migrations_paths: db/queue_migrate
cable:
<<: *default
database: storage/production_cable.sqlite3
migrations_paths: db/cable_migrate
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
database: <%= ENV["DB_NAME"] %>
username: <%= ENV["DB_USER"] %>
password: <%= ENV["DB_PASSWORD"] %>
host: <%= ENV["DB_HOST"] %>
port: <%= ENV["DB_PORT"] || 5432 %>