mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 21:45:23 +02:00
Enhance security information retrieval and handling (#1826)
* Enhance security information retrieval and handling - Add support for operating MIC codes in security info fetching - Update security uniqueness validation to handle unknown securities - Improve security creation and update logic in Plaid investment sync - Update combobox and view components to handle operating MIC codes - Add unknown flag for securities with incomplete information * Update schema.rb * Refactor the need for mic codes * Don't fetch prices unless a security has the necessary mic code * Deduplication * Lint * Update Securities and Plaid Investment Sync - Modify PlaidInvestmentSync to return plaid_security for USD cash - Add non-null constraint to Securities ticker column - Update Securities fixture to use exchange_operating_mic instead of exchange_mic --------- Signed-off-by: Josh Pigford <josh@joshpigford.com>
This commit is contained in:
parent
fb6c6fa6bb
commit
68d7cb5de6
15 changed files with 203 additions and 31 deletions
|
@ -0,0 +1,6 @@
|
|||
class AddExchangeOperatingMicToSecurities < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_column :securities, :exchange_operating_mic, :string
|
||||
add_index :securities, :exchange_operating_mic
|
||||
end
|
||||
end
|
6
db/migrate/20250207194638_adjust_securities_indexes.rb
Normal file
6
db/migrate/20250207194638_adjust_securities_indexes.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
class AdjustSecuritiesIndexes < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
remove_index :securities, name: "index_securities_on_ticker_and_exchange_mic"
|
||||
add_index :securities, [ :ticker, :exchange_operating_mic ], unique: true
|
||||
end
|
||||
end
|
5
db/migrate/20250211161238_make_ticker_not_null.rb
Normal file
5
db/migrate/20250211161238_make_ticker_not_null.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class MakeTickerNotNull < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
change_column_null :securities, :ticker, false
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue