From d92783bdfa7410063042a2e154517c93967fb666 Mon Sep 17 00:00:00 2001 From: alexdbondoc17 Date: Tue, 15 Mar 2022 00:40:39 +0000 Subject: [PATCH] Improve searchable in `doctrine` --- app/models/doctrine.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/models/doctrine.rb b/app/models/doctrine.rb index a2470a7..ec1cb19 100644 --- a/app/models/doctrine.rb +++ b/app/models/doctrine.rb @@ -183,10 +183,8 @@ class Doctrine < ApplicationRecord paper_trail.originator.to_i end - join(:search_doc_date, :target => DoctrineJurisprudence, :type => :date, :join => { :from => :doctrine_id, :to => :id }) - join(:search_year, :target => DoctrineJurisprudence, :type => :integer, :join => { :from => :doctrine_id, :to => :id }) - join(:reference_number, :target => DoctrineJurisprudence, :type => :string, :join => { :from => :doctrine_id, :to => :id }) - date :created_at + + string :headnote end end