Našel jsem odpověď na toto:
Article.where('tags @> ?', '{xbox}')
toto najde každý Article s tagem xbox .
EDIT:
zde je jiná syntaxe, která dělá totéž:
Article.where(['? = ANY (tags)', 'xbox'])
Našel jsem odpověď na toto:
Article.where('tags @> ?', '{xbox}')
toto najde každý Article s tagem xbox .
EDIT:
zde je jiná syntaxe, která dělá totéž:
Article.where(['? = ANY (tags)', 'xbox'])