1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/db/migrate/20220826140921_add_coupon_id_to_order.rb

6 lines
146 B
Ruby
Raw Normal View History

2022-08-26 20:10:21 +02:00
class AddCouponIdToOrder < ActiveRecord::Migration[5.2]
def change
add_reference :orders, :coupon, index: true, foreign_key: true
end
end