joins(:namespace).where("projects.archived = ?",false).where("projects.name LIKE :query OR projects.path LIKE :query OR namespaces.name LIKE :query OR projects.description LIKE :query",query: "%#{query}%")
end
defsearch_by_titlequery
defsearch_by_title(query)
where("projects.archived = ?",false).where("LOWER(projects.name) LIKE :query",query: "%#{query.downcase}%")