mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Stock filter (#1376)
* Initial pass at stock filtering * Rough in filter * Cleaning up security listing * Tweak to search function * Combobox tweaks * Clean up search query * Update trades test with combobox * Update securities.yml
This commit is contained in:
parent
c2561b5fb4
commit
7d8028b505
15 changed files with 104 additions and 7 deletions
|
@ -0,0 +1,6 @@
|
|||
class AddSearchVectorToSecurities < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_column :securities, :search_vector, :virtual, type: :tsvector, as: "setweight(to_tsvector('simple', coalesce(ticker, '')), 'B') || to_tsvector('simple', coalesce(name, ''))", stored: true
|
||||
add_index :securities, :search_vector, using: :gin
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue