```ruby
require 'webmock/rspec'

namespace :db do
  desc 'Drop, create, migrate then seed the database'
  task recreate: :environment do
    WebMock.allow_net_connect!
    Rake::Task['log:clear'].invoke
    Rake::Task['tmp:clear'].invoke
    Rake::Task['db:drop'].invoke
    Rake::Task['db:create'].invoke
    Rake::Task['db:migrate'].invoke
    Rake::Task['db:seed'].invoke
    Sidekiq::Queue.new.clear
    Sidekiq::RetrySet.new.clear
  end
end```

Remove Webmock from Rake task
user
```ruby
namespace :db do
  desc 'Drop, create, migrate then seed the database'
  task recreate: :environment do
    Rake::Task['log:clear'].invoke
    Rake::Task['tmp:clear'].invoke
    Rake::Task['db:drop'].invoke
    Rake::Task['db:create'].invoke
    Rake::Task['db:migrate'].invoke
    Rake::Task['db:seed'].invoke
    Sidekiq::Queue.new.clear
    Sidekiq::RetrySet.new.clear
  end
end```
assistant