From fd687b3e080229c29958ff6dbbc7d800ec10019c Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 7 Nov 2024 19:55:50 -0800 Subject: [PATCH] Fixed CI --- lib/strong_migrations/checker.rb | 2 +- test/timeouts_test.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/strong_migrations/checker.rb b/lib/strong_migrations/checker.rb index baa8f868..caad0292 100644 --- a/lib/strong_migrations/checker.rb +++ b/lib/strong_migrations/checker.rb @@ -118,7 +118,7 @@ def perform(method, *args, &block) end def perform_method(method, *args) - if StrongMigrations.remove_invalid_indexes && direction == :up && method == :add_index + if StrongMigrations.remove_invalid_indexes && direction == :up && method == :add_index && postgresql? @skip_retries = true options = args.extract_options! remove_invalid_index_if_needed(*args, **options) diff --git a/test/timeouts_test.rb b/test/timeouts_test.rb index 7b0b9c0a..e529f153 100644 --- a/test/timeouts_test.rb +++ b/test/timeouts_test.rb @@ -187,6 +187,8 @@ def test_lock_timeout_retries_add_index_safe_by_default end def test_lock_timeout_retries_add_index_remove_invalid_indexes + skip unless postgresql? + StrongMigrations.stub(:remove_invalid_indexes, true) do assert_retries AddIndexConcurrently end