Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
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)
```
  • Loading branch information
fatkodima committed Nov 15, 2023
1 parent 2e427dc commit 27507df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/schema_statements/changing_column_type_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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") })
Expand Down

0 comments on commit 27507df

Please sign in to comment.