1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/db/migrate/20221229103407_create_cart_item_prepaid_pack.rb
2023-02-15 10:29:46 +01:00

14 lines
443 B
Ruby

# frozen_string_literal: true
# From this migration, we save the pending prepaid-packs in database, instead of just creating them on the fly
class CreateCartItemPrepaidPack < ActiveRecord::Migration[5.2]
def change
create_table :cart_item_prepaid_packs do |t|
t.references :prepaid_pack, foreign_key: true
t.references :customer_profile, foreign_key: { to_table: 'invoicing_profiles' }
t.timestamps
end
end
end