mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +01:00
13 lines
360 B
Ruby
13 lines
360 B
Ruby
|
# 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
|
||
|
end
|
||
|
end
|
||
|
end
|