From dc6b547ed89f652b5406489d76140b76cf8e0d1d Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 24 Mar 2021 08:53:01 +1100 Subject: [PATCH] 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. --- lib/tasks/db.rake | 2 +- lib/temporary_db.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake index 2cd09236a61..2f06e20746f 100644 --- a/lib/tasks/db.rake +++ b/lib/tasks/db.rake @@ -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( diff --git a/lib/temporary_db.rb b/lib/temporary_db.rb index 4830cc8804e..c6d0b68995f 100644 --- a/lib/temporary_db.rb +++ b/lib/temporary_db.rb @@ -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"