def clear_db_test_tasks
    FileUtils::mkdir_p 'lib/tasks'
    File.open("lib/tasks/heroku_clear_tasks.rake", "w") do |file|
      file.puts "# rubocop:disable all"
      content = db_test_tasks_to_clear.map do |task_name|
        <<~FILE
          if Rake::Task.task_defined?('#{task_name}')
            Rake::Task['#{task_name}'].clear
            task '#{task_name}' do
            end
          end
        FILE
      end.join("\n")
      file.print content
      file.puts "# rubocop:enable all"
    end
  end
rails test runner + rspec depend on db:test:purge which drops/creates a db which doesn't work on Heroku's DB plans