I tried to come up with a field name for a tag, and tried many options, e.g.:
base.deals.where(contact_id: contact.id, tag_list: 'vk-onboarding')
base.deals.where(contact_id: contact.id, tag: 'vk-onboarding')
base.deals.where(contact_id: contact.id, tags: 'vk-onboarding')
base.deals.where(contact_id: contact.id, tags: ['vk-onboarding'])
base.deals.where(contact_id: contact.id, tags: ['vk-onboarding'])
base.deals.where(contact_id: contact.id, tag_id: 1)
base.deals.where(contact_id: contact.id, tag_ids: 1)
None of this works. How to search by tag?