Skip to content

A platform for community discussion. Free, open, simple.

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

Samdc6b547ed89f
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"