Skip to content

Commit d283063

Browse files
Remove option to wipe database
Running `dev:prime` calls `db:setup`, which appears to be wiping the database for us. I tried updating it to use `db:prepare`, but that means we will always seed the database with data from the `dev.rake` file, resulting in duplicate records. This implementation is consistent with the existing implementation.
1 parent c338a85 commit d283063

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/generators/templates/setup/bin_setup.rb

+1-5
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ def using_node?
4141
system("yarn install --check-files") if using_node?
4242

4343
puts "\n== Preparing database and adding development seed data =="
44-
if ENV["WIPE_DATABASE"] == true
45-
system! "bin/rails db:reset dev:prime"
46-
else
47-
system! "bin/rails dev:prime"
48-
end
44+
system! "bin/rails dev:prime"
4945

5046
# https://github.com/rails/rails/pull/47719/files
5147
puts "\n== Setup test environment =="

0 commit comments

Comments
 (0)