Sha256: 0d7734d837dcae80f1446bfcdfbae003357a347396b4844493cf4ffcbb640194

Contents?: true

Size: 266 Bytes

Versions: 21

Compression:

Stored size: 266 Bytes

Contents

class SeedStoreCreditUpdateReasons < ActiveRecord::Migration[4.2]
  def up
    Spree::StoreCreditUpdateReason.create!(name: 'Credit Given In Error')
  end

  def down
    Spree::StoreCreditUpdateReason.find_by(name: 'Credit Given In Error').try!(:destroy)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
solidus_core-2.3.1 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.2.2 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.1.1 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.0.3 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.3.0 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.3.0.rc3 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.3.0.rc2 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.3.0.rc1 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.3.0.beta1 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.0.2 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.2.1 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.2.0 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.2.0.rc1 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.2.0.beta1 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.1.0 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.1.0.rc1 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.0.1 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.1.0.beta1 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.0.0 db/migrate/20150623214058_seed_store_credit_update_reasons.rb
solidus_core-2.0.0.rc1 db/migrate/20150623214058_seed_store_credit_update_reasons.rb