Skip to content

Commit

Permalink
Fixed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Nov 8, 2024
1 parent db99bfc commit fd687b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/strong_migrations/checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions test/timeouts_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd687b3

Please sign in to comment.