Sha256: f648160f65061e8c4b6f14bf8d5fa79a233d508da6e4cceb2e0608a955f5264c

Contents?: true

Size: 490 Bytes

Versions: 6

Compression:

Stored size: 490 Bytes

Contents

class CreateSolidusStripeCustomers < ActiveRecord::Migration[7.0]
  def change
    create_table :solidus_stripe_customers do |t|
      t.integer :payment_method_id, null: false
      t.string :source_type
      t.integer :source_id
      t.string :stripe_id, index: true

      t.timestamps

      t.foreign_key :spree_payment_methods, column: :payment_method_id
      t.index [:payment_method_id, :source_type, :source_id], unique: true, name: :payment_method_and_source
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_stripe-5.0.2 db/migrate/20230313150008_create_solidus_stripe_customers.rb
solidus_stripe-5.0.1 db/migrate/20230313150008_create_solidus_stripe_customers.rb
solidus_stripe-5.0.0 db/migrate/20230313150008_create_solidus_stripe_customers.rb
solidus_stripe-5.0.0.rc.3 db/migrate/20230313150008_create_solidus_stripe_customers.rb
solidus_stripe-5.0.0.rc.2 db/migrate/20230313150008_create_solidus_stripe_customers.rb
solidus_stripe-5.0.0.rc.1 db/migrate/20230313150008_create_solidus_stripe_customers.rb