Issue
The Ruby Buildpack automatically runs rake db:schema:load
and rake db:migrate
to prepare your database for a test run. For some applications this can case problems.
Resolution
To prevent these rake tasks from running you'll need to override them.
This can be in a file like /lib/tasks/prevent-db-on-heroku-ci.rake
:
Rake::Task['db:schema:load'].clear
task 'db:schema:load' do
end
Rake::Task['db:migrate'].clear
task 'db:migrate' do
end