From 77111f232887cf3b40f2b3a2e6051d7502276d1f Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Fri, 17 Jan 2020 14:24:57 +0500 Subject: [PATCH] Fix bug --- script/setup | 1 + 1 file changed, 1 insertion(+) diff --git a/script/setup b/script/setup index 09b20d3..f586421 100755 --- a/script/setup +++ b/script/setup @@ -33,6 +33,7 @@ FileUtils.chdir APP_ROOT do system! "psql -U #{postgres_user} -c 'CREATE DATABASE #{postgres_db};'" end system! 'bundle exec rake db:prepare' + system! 'bundle exec rake db:prepare RAILS_ENV=test' puts '== Removing old logs and tempfiles ==' system! 'bundle exec rake log:clear tmp:clear'