Skip to content

Commit 6c92b6e

Browse files
committed
Add comment
1 parent 5e07038 commit 6c92b6e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config/database.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ default: &default
1616
development:
1717
primary:
1818
<<: *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/
1921
database: storage/development/data-<%= (`git branch --show-current`.chomp || 'default').parameterize %>.sqlite3
2022
pragmas:
2123
mmap_size: <%= 128 * 1024 * 1024 %> # 128MB

0 commit comments

Comments
 (0)