FIX: rake db:validate_indexes was broken (#12463)

A file was moved, but zeitwerk can not find it due to custom inflection.

Renamed so it can be properly found.
This commit is contained in:
Sam 2021-03-24 08:53:01 +11:00 committed by GitHub
parent c47f403dd9
commit dc6b547ed8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -327,7 +327,7 @@ end
desc 'Validate indexes'
task 'db:validate_indexes', [:arg] => ['db:ensure_post_migrations', 'environment'] do |_, args|
db = TemporaryDB.new
db = TemporaryDb.new
db.start
ActiveRecord::Base.establish_connection(

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
class TemporaryDB
class TemporaryDb
PG_TEMP_PATH = "/tmp/pg_schema_tmp"
PG_CONF = "#{PG_TEMP_PATH}/postgresql.conf"
PG_SOCK_PATH = "#{PG_TEMP_PATH}/sockets"