Undefined column error from Postgres when i use searchable on my table.john in this case), this results in the following query:generate_search_column_expression helper method fixes it for me. It makes sure that for postgres it always returns an expression, never a string. I'm not sure if this is a good solution tho.