I hate Rails

parent dd46b4d9
Pipeline #170852 failed with stages
in 9 minutes and 46 seconds
......@@ -34,12 +34,8 @@ fi
# DB init or migration
if [[ $RAILS_ENV == "test" ]]; then
bundle exec rake db:reset
else # development/production
if bundle exec rake db:create 2>/dev/null; then
bundle exec rake db:schema:load db:seed
else
bundle exec rake db:migrate
fi
elif ! bundle exec rake db:setup; then
bundle exec rake db:migrate
fi
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment