Sha256: 55a008534daa6f0899ae98fb629682139be8da56b2194d470379dc7de32d5cab

Contents?: true

Size: 738 Bytes

Versions: 21

Compression:

Stored size: 738 Bytes

Contents

Spree::StoreCreditCategory.find_or_create_by!(name: Spree.t("store_credit_category.default"))

Spree::PaymentMethod.create_with(
  name: "Store Credit",
  description: "Store credit",
  active: true,
  display_on: 'none'
).find_or_create_by!(
  type: "Spree::PaymentMethod::StoreCredit"
)

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

Spree::ReimbursementType.create_with(name: "Store Credit").find_or_create_by!(type: 'Spree::ReimbursementType::StoreCredit')

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

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
solidus_core-2.1.1 db/default/spree/store_credit.rb
solidus_core-2.0.3 db/default/spree/store_credit.rb
solidus_core-1.4.2 db/default/spree/store_credit.rb
solidus_core-1.3.2 db/default/spree/store_credit.rb
solidus_core-2.0.2 db/default/spree/store_credit.rb
solidus_core-1.4.1 db/default/spree/store_credit.rb
solidus_core-2.1.0 db/default/spree/store_credit.rb
solidus_core-2.1.0.rc1 db/default/spree/store_credit.rb
solidus_core-2.0.1 db/default/spree/store_credit.rb
solidus_core-2.1.0.beta1 db/default/spree/store_credit.rb
solidus_core-2.0.0 db/default/spree/store_credit.rb
solidus_core-1.4.0 db/default/spree/store_credit.rb
solidus_core-2.0.0.rc1 db/default/spree/store_credit.rb
solidus_core-1.4.0.rc1 db/default/spree/store_credit.rb
solidus_core-2.0.0.beta1 db/default/spree/store_credit.rb
solidus_core-1.4.0.beta1 db/default/spree/store_credit.rb
solidus_core-1.3.1 db/default/spree/store_credit.rb
solidus_core-1.3.0 db/default/spree/store_credit.rb
solidus_core-1.3.0.rc2 db/default/spree/store_credit.rb
solidus_core-1.3.0.rc1 db/default/spree/store_credit.rb