1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/db/migrate/20210416073410_create_payment_gateway_objects.rb

14 lines
402 B
Ruby
Raw Normal View History

2021-04-16 12:25:48 +02:00
# frozen_string_literal: true
# Saves references to remote objects, in the payment gateway database
class CreatePaymentGatewayObjects < ActiveRecord::Migration[5.2]
def change
create_table :payment_gateway_objects do |t|
t.string :gateway_object_id
t.string :gateway_object_type
t.references :item, polymorphic: true
t.number :payment_gateway_object_id
2021-04-16 12:25:48 +02:00
end
end
end