Skip to content

Commit 697cab4

Browse files
committed
Add comment
1 parent 37cd008 commit 697cab4

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
@@ -14,6 +14,8 @@ default: &default
1414
development:
1515
primary:
1616
<<: *default
17+
# Why read the branch name? So we can support having a separate database for each branch in development.
18+
# For more info, see: https://fractaledmind.github.io/2023/09/06/enhancing-rails-sqlite-branch-databases/
1719
database: storage/development/data-<%= (`git branch --show-current`.chomp || 'default').parameterize %>.sqlite3
1820
cache:
1921
<<: *default

0 commit comments

Comments
 (0)