class AddPaymentMethodToSpreeCreditCards < ActiveRecord::Migration
  def change
    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
