Skip to content

Commit 026e937

Browse files
committed
Check in spec/dummy/config/database.yml so CI can boot the dummy app
The file existed locally but was caught by a global gitignore rule (database.yml everywhere), so it was never committed. CI checked the repo out without it and every matrix cell failed at dummy-app boot: RuntimeError: Could not load database configuration. No such file - ["config/database.yml"] Add a negation in the repo .gitignore so the one database.yml the dummy app needs is tracked, and commit the file itself (sqlite3 :memory: for test, local file for development).
1 parent 971113d commit 026e937

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@
1616
/spec/dummy/db/*.sqlite3
1717
/spec/dummy/db/*.sqlite3-journal
1818
/spec/dummy/storage/
19+
20+
# The dummy app's database.yml is checked in — override a global
21+
# ignore rule that excludes "database.yml" everywhere by default.
22+
!/spec/dummy/config/database.yml

spec/dummy/config/database.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
test:
2+
adapter: sqlite3
3+
database: ":memory:"
4+
pool: 5
5+
timeout: 5000
6+
7+
development:
8+
adapter: sqlite3
9+
database: db/development.sqlite3
10+
pool: 5
11+
timeout: 5000

0 commit comments

Comments
 (0)