class ActiveRecord::SchemaMigration
def delete_all_versions
def delete_all_versions # Eagerly check in connection to avoid checking in/out many times in the called method. @pool.with_connection do versions.each do |version| delete_version(version) end end end