From b632cb3510a87f476753536370e000db207c5834 Mon Sep 17 00:00:00 2001 From: Splines Date: Thu, 1 Aug 2024 13:23:11 +0200 Subject: [PATCH] Use `bundle exec` --- initialize.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/initialize.sh b/initialize.sh index f747004d1..d3d043c61 100755 --- a/initialize.sh +++ b/initialize.sh @@ -11,9 +11,9 @@ check_for_preseeds() { for file in db/backups/docker_development/*.sql; do [[ $file -nt $latest ]] && latest=$file done - rails db:restore pattern=$(echo $latest | rev | cut -d "/" -f1 | rev | cut -d "_" -f1) - rails db:create:interactions - rails db:schema:load + bundle exec rails db:restore pattern=$(echo $latest | rev | cut -d "/" -f1 | rev | cut -d "_" -f1) + bundle exec rails db:create:interactions + bundle exec rails db:schema:load fi # Files (uploads) preseed