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/20241023195438_add_stock_exchange_reference.rb

8 lines
257 B
Ruby
Raw Normal View History

class AddStockExchangeReference < ActiveRecord::Migration[7.2]
def change
add_column :securities, :country_code, :string
add_reference :securities, :stock_exchange, type: :uuid, foreign_key: true
add_index :securities, :country_code
end
end