Sha256: 8489a32aa3ec336000de540cc256153576cc199e29137525670bfc777987845f

Contents?: true

Size: 367 Bytes

Versions: 10

Compression:

Stored size: 367 Bytes

Contents

class CreateSpreePaymentMethodsStores < ActiveRecord::Migration[5.2]
  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

10 entries across 10 versions & 1 rubygems

Version Path
spree_core-4.2.7 db/migrate/20210114182625_create_spree_payment_methods_stores.rb
spree_core-4.3.3 db/migrate/20210114182625_create_spree_payment_methods_stores.rb
spree_core-4.2.6 db/migrate/20210114182625_create_spree_payment_methods_stores.rb
spree_core-4.3.2 db/migrate/20210114182625_create_spree_payment_methods_stores.rb
spree_core-4.3.1 db/migrate/20210114182625_create_spree_payment_methods_stores.rb
spree_core-4.3.0 db/migrate/20210114182625_create_spree_payment_methods_stores.rb
spree_core-4.3.0.rc3 db/migrate/20210114182625_create_spree_payment_methods_stores.rb
spree_core-4.3.0.rc2 db/migrate/20210114182625_create_spree_payment_methods_stores.rb
spree_core-4.3.0.rc1 db/migrate/20210114182625_create_spree_payment_methods_stores.rb
spree_core-4.2.5 db/migrate/20210114182625_create_spree_payment_methods_stores.rb