mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-06 22:36:07 +00:00
fix incorrect rounding of final weight volume
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class ChangeFinalWeightVolumeToScale3InSpreeLineItems < ActiveRecord::Migration[7.0]
|
||||
def up
|
||||
change_column :spree_line_items, :final_weight_volume, :decimal, precision: 10, scale: 3
|
||||
end
|
||||
|
||||
def down
|
||||
change_column :spree_line_items, :final_weight_volume, :decimal, precision: 10, scale: 2
|
||||
end
|
||||
end
|
||||
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.0].define(version: 2025_01_28_031518) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2025_03_17_221440) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_stat_statements"
|
||||
enable_extension "plpgsql"
|
||||
@@ -557,7 +557,7 @@ ActiveRecord::Schema[7.0].define(version: 2025_01_28_031518) do
|
||||
t.integer "max_quantity"
|
||||
t.string "currency", limit: 255
|
||||
t.decimal "distribution_fee", precision: 10, scale: 2
|
||||
t.decimal "final_weight_volume", precision: 10, scale: 2
|
||||
t.decimal "final_weight_volume", precision: 10, scale: 3
|
||||
t.integer "tax_category_id"
|
||||
t.decimal "weight", precision: 8, scale: 2
|
||||
t.decimal "height", precision: 8, scale: 2
|
||||
|
||||
Reference in New Issue
Block a user