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 37cd008 commit 697cab4Copy full SHA for 697cab4
config/database.yml
@@ -14,6 +14,8 @@ default: &default
14
development:
15
primary:
16
<<: *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/
19
database: storage/development/data-<%= (`git branch --show-current`.chomp || 'default').parameterize %>.sqlite3
20
cache:
21
0 commit comments