class ActiveRecord::ConnectionAdapters::PostgreSQL::Column

def array

def array
  sql_type_metadata.sql_type.end_with?("[]")
end