We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e07038 commit 6c92b6eCopy full SHA for 6c92b6e
config/database.yml
@@ -16,6 +16,8 @@ default: &default
16
development:
17
primary:
18
<<: *default
19
+ # Why read the branch name? So we can support having a separate database for each branch in development.
20
+ # For more info, see: https://fractaledmind.github.io/2023/09/06/enhancing-rails-sqlite-branch-databases/
21
database: storage/development/data-<%= (`git branch --show-current`.chomp || 'default').parameterize %>.sqlite3
22
pragmas:
23
mmap_size: <%= 128 * 1024 * 1024 %> # 128MB
0 commit comments