Skip to content

Commit

Permalink
Fix: Explicitly set the database for the dummy app to sqlite3
Browse files Browse the repository at this point in the history
If a developer has configuration for projects in (e.g.) a .railsrc file that sets a different database, the generator will fail as the adapter is not included in the template. We can remediate this issue by explicitly setting sqlite3 as the database when setting up the dummy application.
  • Loading branch information
mattr committed Sep 7, 2023
1 parent b89149d commit 40c6a66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tasks/dummy.thor
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Dummy < Thor
run <<~SH
cd spec && \
rails new dummy \
--database sqlite3 \
--skip-action-cable \
--skip-action-mailer \
--skip-action-mailbox \
Expand Down

0 comments on commit 40c6a66

Please sign in to comment.