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 de404b5 commit 60b5647Copy full SHA for 60b5647
config/database.yml
@@ -15,6 +15,8 @@ default: &default
15
development:
16
primary:
17
<<: *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/
20
database: storage/development/data-<%= (`git branch --show-current`.chomp || 'default').parameterize %>.sqlite3
21
cache:
22
0 commit comments