Sha256: 34721b1fa625715303176adee3058718b567f9f663e8345f91b0ae9bb7281949

Contents?: true

Size: 295 Bytes

Versions: 6

Compression:

Stored size: 295 Bytes

Contents

class AdjustPercentCalcSettings < ActiveRecord::Migration
  def self.up
    Calculator::FlatPercentItemTotal.all.each {|c| c.preferred_flat_percent *= 100.0; c.save }
  end

  def self.down
    Calculator::FlatPercentItemTotal.all.each {|c| c.preferred_flat_percent /= 100.0; c.save }
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
spree-enriquez-0.9.4 db/migrate/20090908141056_adjust_percent_calc_settings.rb
spree-0.9.4 db/migrate/20090908141056_adjust_percent_calc_settings.rb
spree-0.9.3 db/migrate/20090908141056_adjust_percent_calc_settings.rb
spree-0.9.2 db/migrate/20090908141056_adjust_percent_calc_settings.rb
spree-0.9.1 db/migrate/20090908141056_adjust_percent_calc_settings.rb
spree-0.9.0 db/migrate/20090908141056_adjust_percent_calc_settings.rb