Sha256: b0d6c432b31978b6533bf39ba0d9a46551efb40620b881c7d5c836ee1422c2b4

Contents?: true

Size: 606 Bytes

Versions: 9

Compression:

Stored size: 606 Bytes

Contents

# This migration comes from spree (originally 20130319062004)
class ChangeOrdersTotalPrecision < ActiveRecord::Migration[4.2]
   def change
    change_column :spree_orders, :item_total,  :decimal, precision: 10, scale: 2, default: 0.0, null: false
    change_column :spree_orders, :total,  :decimal, precision: 10, scale: 2, default: 0.0, null: false
    change_column :spree_orders, :adjustment_total,  :decimal, precision: 10, scale: 2, default: 0.0, null: false
    change_column :spree_orders, :payment_total,  :decimal, precision: 10, scale: 2, default: 0.0                                
   end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_purchase_order-3.7.0 spec/dummy/db/migrate/20191113195753_change_orders_total_precision.spree.rb
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091694_change_orders_total_precision.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091694_change_orders_total_precision.spree.rb
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516181882_change_orders_total_precision.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516181882_change_orders_total_precision.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516181882_change_orders_total_precision.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516181882_change_orders_total_precision.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516181882_change_orders_total_precision.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516181882_change_orders_total_precision.spree.rb