activerecord postgres regex code example Example: activerecord postgres regex Model.where("column ~* ?", 'regex')