From 27507dfb3f6fff5d476f4f9b2bede5848b19a982 Mon Sep 17 00:00:00 2001 From: fatkodima Date: Thu, 16 Nov 2023 00:03:37 +0200 Subject: [PATCH] Fix CI That's a mystery why in ruby 2.4 passing a symbol works, but passing a string produces ``` ArgumentError: wrong number of arguments (given 3, expected 2) ``` --- test/schema_statements/changing_column_type_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/schema_statements/changing_column_type_test.rb b/test/schema_statements/changing_column_type_test.rb index 67d78c7..b469878 100644 --- a/test/schema_statements/changing_column_type_test.rb +++ b/test/schema_statements/changing_column_type_test.rb @@ -270,7 +270,7 @@ def test_finalize_column_type_change_copies_indexes_with_long_names t.index long_column_name, name: "index_projects_on_#{long_column_name}" end - @connection.initialize_column_type_change(:projects, long_column_name, :string) + @connection.initialize_column_type_change(:projects, long_column_name.to_sym, :string) @connection.finalize_column_type_change(:projects, long_column_name) assert_equal(1, @connection.indexes(:projects).count { |index| index.columns.include?("#{long_column_name}_for_type_change") })