Sha256: 3bb7de4f6269c65304f109c19dd4eafe45b923cb43398a6ffd284f9c9783a3bb

Contents?: true

Size: 361 Bytes

Versions: 3

Compression:

Stored size: 361 Bytes

Contents

class CreateSolidusAfterpayPaymentSources < SolidusSupport::Migration[4.2]
  def change
    create_table :solidus_afterpay_payment_sources do |t|
      t.string :token
      t.references :payment_method, index: true

      t.timestamps
    end

    add_foreign_key :solidus_afterpay_payment_sources, :spree_payment_methods, column: :payment_method_id
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_afterpay-0.3.0 db/migrate/20210813142725_create_solidus_afterpay_payment_sources.rb
solidus_afterpay-0.2.0 db/migrate/20210813142725_create_solidus_afterpay_payment_sources.rb
solidus_afterpay-0.1.0 db/migrate/20210813142725_create_solidus_afterpay_payment_sources.rb