Sha256: 62f8e903afd2a1865234ef7417ba2c2e4d4ee77646e1948dbe2489dd9f072350
Contents?: true
Size: 389 Bytes
Versions: 2
Compression:
Stored size: 389 Bytes
Contents
class CreateSpreeStoreCreditPaymentMethod < ActiveRecord::Migration def up Spree::PaymentMethod.create_with( name: Spree.t("store_credit.store_credit"), description: Spree.t("store_credit.store_credit"), active: true, display_on: 'none', ).find_or_create_by!( type: "Spree::PaymentMethod::StoreCredit", environment: Rails.env, ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_core-1.0.0.pre2 | db/migrate/20150506181611_create_spree_store_credit_payment_method.rb |
solidus_core-1.0.0.pre | db/migrate/20150506181611_create_spree_store_credit_payment_method.rb |