Skip to content

Commit

Permalink
🔧 change bin/setup to recreate database
Browse files Browse the repository at this point in the history
  • Loading branch information
karinevieira committed Feb 12, 2024
1 parent ac7026d commit 5c1354f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ FileUtils.chdir APP_ROOT do
# FileUtils.cp "config/database.yml.sample", "config/database.yml"
# end

puts "\n== Preparing database =="
system! "bin/rails db:prepare"
puts "\n== Recreating database =="
system! "bin/rails db:reset"

puts "\n== Removing old logs and tempfiles =="
system! "bin/rails log:clear tmp:clear"
Expand Down

0 comments on commit 5c1354f

Please sign in to comment.