Sha256: 4f2fd8ab0b4328297a0aa086bb208c52a989d4be532148782f51695e55047460

Contents?: true

Size: 525 Bytes

Versions: 9

Compression:

Stored size: 525 Bytes

Contents

# This migration comes from spree (originally 20140307235515)
class AddUserIdToSpreeCreditCards < ActiveRecord::Migration[4.2]
  def change
    unless Spree::CreditCard.column_names.include? "user_id"
      add_column :spree_credit_cards, :user_id, :integer
      add_index :spree_credit_cards, :user_id
    end

    unless Spree::CreditCard.column_names.include? "payment_method_id"
      add_column :spree_credit_cards, :payment_method_id, :integer
      add_index :spree_credit_cards, :payment_method_id
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_purchase_order-3.7.0 spec/dummy/db/migrate/20191113195840_add_user_id_to_spree_credit_cards.spree.rb
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091781_add_user_id_to_spree_credit_cards.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091781_add_user_id_to_spree_credit_cards.spree.rb
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516181969_add_user_id_to_spree_credit_cards.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516181969_add_user_id_to_spree_credit_cards.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516181969_add_user_id_to_spree_credit_cards.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516181969_add_user_id_to_spree_credit_cards.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516181969_add_user_id_to_spree_credit_cards.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516181969_add_user_id_to_spree_credit_cards.spree.rb