Sha256: 7c4487ebe001b3e104617604a5a219bc18a65262d1e6b3beca3eeefc0c1e6145

Contents?: true

Size: 243 Bytes

Versions: 11

Compression:

Stored size: 243 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 = 't' WHERE locked = 't'"
  end

  def down
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_promo-1.0.7 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.0.6 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.0.4 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.0.3 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.0.2 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.0.1 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.0.0 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.0.0.rc4 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.0.0.rc3 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.0.0.rc2 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-1.0.0.rc1 db/migrate/20101026184833_migrate_adjustments.rb