Sha256: 61577c99dfa68be93404a0ab37be5b3717c2a330316dcc8accaf98fed73b22a0
Contents?: true
Size: 525 Bytes
Versions: 19
Compression:
Stored size: 525 Bytes
Contents
class SpreePaymentMethodStoreCredits < ActiveRecord::Migration 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
19 entries across 19 versions & 1 rubygems