Skip to content

Commit 60b5647

Browse files
committed
Add comment
1 parent de404b5 commit 60b5647

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

0 commit comments

Comments
 (0)