Sha256: 685fe7806b7906fe71d8f4d8128112627f5649e088020b2f86368042f748959d
Contents?: true
Size: 387 Bytes
Versions: 19
Compression:
Stored size: 387 Bytes
Contents
class SpreeStoreCreditTypes < ActiveRecord::Migration def up Spree::StoreCreditType.find_or_create_by(name: 'Expiring', priority: 1) Spree::StoreCreditType.find_or_create_by(name: 'Non-expiring', priority: 2) end def down Spree::StoreCreditType.find_by(name: 'Expiring').try(&:destroy) Spree::StoreCreditType.find_by(name: 'Non-expiring').try(&:destroy) end end
Version data entries
19 entries across 19 versions & 1 rubygems