summaryrefslogtreecommitdiff
path: root/db/migrate/20230412015843_add_payment_to_order.rb
blob: 90caab6629dd3c84afa4c9084ea2bfc4e164d89b (plain)
1
2
3
4
5
6
7
class AddPaymentToOrder < ActiveRecord::Migration[7.0]
  def change
    change_table(:orders) do |t|
      t.references :payment, null: false, foreign_key: true
    end
  end
end