diff options
Diffstat (limited to 'db/migrate/20230412015843_add_payment_to_order.rb')
-rw-r--r-- | db/migrate/20230412015843_add_payment_to_order.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20230412015843_add_payment_to_order.rb b/db/migrate/20230412015843_add_payment_to_order.rb new file mode 100644 index 0000000..90caab6 --- /dev/null +++ b/db/migrate/20230412015843_add_payment_to_order.rb @@ -0,0 +1,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 |