Created
November 12, 2024 04:32
-
-
Save mirzalazuardi/ba79775d2a33da4949af7a7a66064472 to your computer and use it in GitHub Desktop.
trifecta solid config for sqlite3 in rails 8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: &default | |
adapter: sqlite3 | |
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> | |
timeout: 5000 | |
encoding: utf8 | |
development: | |
primary: | |
<<: *default | |
database: db/development.sqlite3 | |
queue: | |
<<: *default | |
database: db/development_queue.sqlite3 | |
migrations_paths: db/queue_migrate | |
cache: | |
<<: *default | |
database: db/development_cache.sqlite3 | |
migrations_paths: db/cache_migrate | |
cable: | |
<<: *default | |
database: db/development_cable.sqlite3 | |
migrations_paths: db/cable_migrate | |
test: | |
primary: | |
<<: *default | |
database: db/test.sqlite3 | |
queue: | |
<<: *default | |
database: db/test_queue.sqlite3 | |
migrations_paths: db/queue_migrate | |
cache: | |
<<: *default | |
database: db/test_cache.sqlite3 | |
migrations_paths: db/cache_migrate | |
cable: | |
<<: *default | |
database: db/test_cable.sqlite3 | |
migrations_paths: db/cable_migrate | |
production: | |
primary: | |
<<: *default | |
database: db/production.sqlite3 | |
queue: | |
<<: *default | |
database: db/production_queue.sqlite3 | |
migrations_paths: db/queue_migrate | |
cache: | |
<<: *default | |
database: db/production_cache.sqlite3 | |
migrations_paths: db/cache_migrate | |
cable: | |
<<: *default | |
database: db/production_cable.sqlite3 | |
migrations_paths: db/cable_migrate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment