I have table File with column file_names which is ARRAY type. W would like to build query searching records where any of array element is like "abc*" using wildcard.
I tried:
File.names.any("abc%", operator= operators.like_op).all()
but it doesn't work. It return sql:
SELECT file.id, file.names FROM file WHERE 'abc%' LIKE ANY(file.names)
but it return empty result. Do you have any suggestions, how to build such query?