bin/setup no longer resets when migrations are pending

This commit is contained in:
Mike Dalessio
2025-11-04 07:56:09 -05:00
parent 21772db917
commit 9ca63db91c
+4 -2
View File
@@ -76,10 +76,12 @@ fi
if [[ $* == *--reset* ]]; then
step "Resetting the database" rails db:reset
elif needs_seeding; then
step "Setting up the database" rails db:reset
else
step "Preparing the database" rails db:prepare
if needs_seeding; then
step "Seeding the database" rails db:seed
fi
fi
step "Cleaning up logs and tempfiles" rails log:clear tmp:clear