Sha256: 3a41503be8a80968bdbd8621cc62fba9d652253a9d0e9dd9853e6237e3fa39b7

Contents?: true

Size: 234 Bytes

Versions: 7

Compression:

Stored size: 234 Bytes

Contents

# This migration comes from spree (originally 20101026184916)
class PreventNilPaymentTotal < ActiveRecord::Migration
  def up
    execute "UPDATE orders SET payment_total = 0.0 WHERE payment_total IS NULL"
  end

  def down
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
spree_mercado_pago_payment_method-0.0.2 spec/dummy/db/migrate/20121121030206_prevent_nil_payment_total.spree.rb
spree_mercado_pago_payment_method-0.1.1 spec/dummy/db/migrate/20121121030206_prevent_nil_payment_total.spree.rb
spree_mercado_pago_payment_method-0.1.0 spec/dummy/db/migrate/20121121030206_prevent_nil_payment_total.spree.rb
datashift_spree-0.3.0 spec/sandbox/db/migrate/20121023154425_prevent_nil_payment_total.spree.rb
datashift_spree-0.2.1 spec/sandbox/db/migrate/20121015151218_prevent_nil_payment_total.spree.rb
datashift_spree-0.2.0 spec/sandbox/db/migrate/20120925192786_prevent_nil_payment_total.spree.rb
datashift_spree-0.1.0 spec/sandbox/db/migrate/20120918081517_prevent_nil_payment_total.spree.rb