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

  def down
    # intentionally left blank
  end
end

class SeedStoreCreditUpdateReasons < ActiveRecord::Migration
  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

Destroy record in down migration
Destroy record in down migration
