After upgrading a Rails app to Rails 5, running RSpec tests gives me the following error:
rails aborted! ActiveRecord::NoEnvironmentInSchemaError: Environm
fix for jenkins before you drop database you should execute db:environment:set with || true, so the command doesn't abort:
db:environment:set
|| true
bin/rails db:environment:set RAILS_ENV=test || true