Sha256: ab89fa2d67017f57aad2bbf64e33df322cabbd55d51d75345b6bf55c22fcad0b

Contents?: true

Size: 265 Bytes

Versions: 17

Compression:

Stored size: 265 Bytes

Contents

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

17 entries across 17 versions & 1 rubygems

Version Path
spree_promo-1.2.5 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.1.6 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.1.5 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.2.4 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.2.3 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.2.2 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.1.4 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.2.0 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.2.0.rc2 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.2.0.rc1 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.1.3 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.1.2 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.1.2.rc1 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.1.1 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.1.0 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.1.0.rc2 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.1.0.rc1 db/migrate/20101026184833_migrate_adjustments.rb