hensei-api/db/migrate/20230108150956_add_source_party_to_parties.rb

7 lines
210 B
Ruby

class AddSourcePartyToParties < ActiveRecord::Migration[7.0]
def change
change_table(:parties) do |t|
t.references :source_party, type: :uuid, foreign_key: { to_table: 'parties' }
end
end
end