Sha256: 8a7a2271784c1d4a035e41b0194f39a812b46b6080c52e711ec80b5677400e4e

Contents?: true

Size: 333 Bytes

Versions: 4

Compression:

Stored size: 333 Bytes

Contents

# This migration comes from spree_promo (originally 20101026184833)
class MigrateAdjustments < ActiveRecord::Migration
  def up
    execute "UPDATE spree_adjustments SET amount = 0.0 WHERE amount IS NULL"
    execute "UPDATE spree_adjustments SET mandatory = #{quoted_true} WHERE locked = #{quoted_true}"
  end

  def down
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
datashift_spree-0.3.0 spec/sandbox/db/migrate/20121023154474_migrate_adjustments.spree_promo.rb
datashift_spree-0.2.1 spec/sandbox/db/migrate/20121015151267_migrate_adjustments.spree_promo.rb
datashift_spree-0.2.0 spec/sandbox/db/migrate/20120925192835_migrate_adjustments.spree_promo.rb
datashift_spree-0.1.0 spec/sandbox/db/migrate/20120918081566_migrate_adjustments.spree_promo.rb