Sha256: 3f8acaa1e0fd0baf944aa998a8693d45fb4a3d9456db0f85b3ffddfe201bdc7d

Contents?: true

Size: 367 Bytes

Versions: 9

Compression:

Stored size: 367 Bytes

Contents

class CreateSpreePaymentMethodsStores < ActiveRecord::Migration[6.0]
  def change
    create_table :spree_payment_methods_stores, id: false do |t|
      t.belongs_to :payment_method
      t.belongs_to :store
    end

    add_index :spree_payment_methods_stores, [:payment_method_id, :store_id], unique: true, name: 'payment_mentod_id_store_id_unique_index'
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_core-4.2.4 db/migrate/20210114182625_create_spree_payment_methods_stores.rb
spree_core-4.2.3.1 db/migrate/20210114182625_create_spree_payment_methods_stores.rb
spree_core-4.2.3 db/migrate/20210114182625_create_spree_payment_methods_stores.rb
spree_core-4.2.2 db/migrate/20210114182625_create_spree_payment_methods_stores.rb
spree_core-4.2.1 db/migrate/20210114182625_create_spree_payment_methods_stores.rb
spree_core-4.2.0 db/migrate/20210114182625_create_spree_payment_methods_stores.rb
spree_core-4.2.0.rc5 db/migrate/20210114182625_create_spree_payment_methods_stores.rb
spree_core-4.2.0.rc4 db/migrate/20210114182625_create_spree_payment_methods_stores.rb
spree_core-4.2.0.rc3 db/migrate/20210114182625_create_spree_payment_methods_stores.rb