mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 05:25:24 +02:00
Remove dependency on stock exchange table (#1368)
This commit is contained in:
parent
b75b41a5e2
commit
45935db5f3
6 changed files with 37 additions and 22 deletions
10
db/migrate/20241025174650_add_mic_to_securities.rb
Normal file
10
db/migrate/20241025174650_add_mic_to_securities.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
class AddMicToSecurities < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_column :securities, :exchange_mic, :string
|
||||
add_column :securities, :exchange_acronym, :string
|
||||
|
||||
remove_column :securities, :stock_exchange_id, :uuid
|
||||
|
||||
add_index :securities, [ :ticker, :exchange_mic ], unique: true
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue