We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 661ace4 commit b88bad7Copy full SHA for b88bad7
lib/anchor/types/inference/active_record.rb
@@ -32,7 +32,7 @@ def from(column, check_config: true)
32
return Anchor.config.ar_column_to_type.call(column) if check_config && Anchor.config.ar_column_to_type
33
type = from_sql_type(column.type)
34
35
- if column.sql_type_metadata.sql_type == "character varying[]"
+ if ["character varying[]", "text[]"].include?(column.sql_type_metadata.sql_type)
36
type = Anchor::Types::Array.new(Anchor::Types::String)
37
end
38
0 commit comments