1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-21 14:19:39 +02:00
Maybe/db/migrate/20240731191344_change_primary_identifier_for_security.rb
Zach Gollwitzer 453a54e5e6
Add security prices provider (Synth integration) (#1039)
* User tickers as primary lookup symbol instead of isin

* Add security price provider

* Fetch security prices in bulk to improve sync performance

* Fetch prices in bulk, better mocking for tests
2024-08-01 19:43:23 -04:00

7 lines
240 B
Ruby

class ChangePrimaryIdentifierForSecurity < ActiveRecord::Migration[7.2]
def change
rename_column :securities, :symbol, :ticker
remove_column :securities, :isin, :string
rename_column :security_prices, :isin, :ticker
end
end