Sha256: 593540a7fa6f8a03c7d397e603eb119fd509d0016023197807d315ce73e38c28
Contents?: true
Size: 592 Bytes
Versions: 9
Compression:
Stored size: 592 Bytes
Contents
# This migration comes from spree (originally 20150714154102) class SpreePaymentMethodStoreCredits < ActiveRecord::Migration[4.2] def up # Reload to pick up new position column for acts_as_list Spree::PaymentMethod.reset_column_information Spree::PaymentMethod::StoreCredit.find_or_create_by(name: 'Store Credit', description: 'Store Credit', active: true, display_on: 'back_end') end def down Spree::PaymentMethod.find_by(type: 'Spree::PaymentMethod::StoreCredit', name: 'Store Credit').try(&:destroy) end end
Version data entries
9 entries across 9 versions & 2 rubygems