You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: cleanup_controller.rb
    path of file: ./repos/templatus-hotwire/app/controllers/cypress
    
    the code of the file until where you have to start completion: module Cypress
  class CleanupController < ActionController::Base
    skip_before_action :verify_authenticity_token

  
    
    def destroy
      return unless Rails.configuration.x.cypress

      tables = ActiveRecord::Base.connection.tables
      tables.delete 'schema_migrations'
      tables.each do |t|
        ActiveRecord::Base.connection.execute("TRUNCATE #{t} CASCADE")
      end

      head :ok
    end