class AddMarketToCurrencies < ActiveRecord::Migration[5.1] def change add_reference :currencies, :market, foreign_key: true end end