mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-17 11:54:22 +01:00
source for building search engine
This commit is contained in:
parent
a164ec402d
commit
7af6f18973
@ -89,6 +89,7 @@ class Project < ApplicationRecord
|
||||
connection = ActiveRecord::Base.connection
|
||||
return unless connection.instance_values['config'][:adapter] == 'postgresql'
|
||||
|
||||
# see http://rachbelaid.com/postgres-full-text-search-is-good-enough/
|
||||
return connection.execute <<~SQL
|
||||
SELECT pid, p_name
|
||||
FROM (SELECT projects.id as pid,
|
||||
|
Loading…
x
Reference in New Issue
Block a user