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