Sha256: f33217a44aa0dfd807442d43ad416bec8ab49d38a7536c1cf4f7e08be47b6f27

Contents?: true

Size: 672 Bytes

Versions: 2

Compression:

Stored size: 672 Bytes

Contents

# Loads seed data out of default dir
default_path = File.join(File.dirname(__FILE__), 'default')

Rake::Task['db:load_dir'].reenable
Rake::Task['db:load_dir'].invoke(default_path)

Spree::PaymentMethod.find_or_create_by(type: "Spree::PaymentMethod::StoreCredit", name: "Store Credit", description: "Store credit.", active: true, environment: Rails.env, display_on: 'back_end')

Spree::StoreCreditType.find_or_create_by(name: 'Expiring', priority: 1)
Spree::StoreCreditType.find_or_create_by(name: 'Non-expiring', priority: 2)

Spree::StoreCreditCategory.find_or_create_by(name: 'Gift Card')

Spree::StoreCreditUpdateReason.find_or_create_by(name: 'Credit Given In Error')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_core-1.0.0.pre3 db/seeds.rb
solidus_core-1.0.0.pre2 db/seeds.rb