Sha256: 38ade141ee26b593d8d191c84ea0ce48151cbbd385a53dccf92e16af428ddc45

Contents?: true

Size: 244 Bytes

Versions: 52

Compression:

Stored size: 244 Bytes

Contents

class MigrateAdjustments < ActiveRecord::Migration
  def self.up
    execute("update adjustments set amount = 0.0 where amount is null")
    execute("update adjustments set mandatory = 'true', locked = 'true'")
  end

  def self.down
  end
end

Version data entries

52 entries across 40 versions & 9 rubygems

Version Path
spree_promo-0.70.7 db/migrate/20101026184833_migrate_adjustments.rb
spree_promo-0.70.6 db/migrate/20101026184833_migrate_adjustments.rb
apispree_core-0.0.0 db/migrate/20101026184833_migrate_adjustments.rb
My-Commerce_core-1.1.0 db/migrate/20101026184833_migrate_adjustments.rb
My-Commerce_core-1.0.0 db/migrate/20101026184833_migrate_adjustments.rb
MyCommerceapi-1.0.0 auth/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb
MyCommerceapi-1.0.0 core/db/migrate/20101026184833_migrate_adjustments.rb
MyCommerceapi-1.0.0 core/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb
MyCommerceapi-1.0.0 api/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb
MyCommerceapi-1.0.0 dash/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb
MyCommerceapi-1.0.0 sandbox/db/migrate/20101026184833_migrate_adjustments.rb
MyCommerceapi-1.0.0 promo/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb
MyCommerce-0.0.3 core/db/migrate/20101026184833_migrate_adjustments.rb
MyCommerce-0.0.3 dash/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb
MyCommerce-0.0.3 sandbox/db/migrate/20101026184833_migrate_adjustments.rb
MyCommerce-0.0.3 api/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb
MyCommerce-0.0.3 auth/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb
MyCommerce-0.0.3 core/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb
MyCommerce-0.0.3 promo/spec/test_app/db/migrate/20101026184833_migrate_adjustments.rb
rfcommerce_sandbox-0.0.3 db/migrate/20101026184833_migrate_adjustments.rb