Merge pull request #1482 from basecamp/flavorjones/better-bin-setup

bin/setup no longer resets when migrations are pending
This commit is contained in:
Mike Dalessio
2025-11-04 07:57:57 -05:00
committed by GitHub
+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