Skip to content

Commit

Permalink
Workaround for #78
Browse files Browse the repository at this point in the history
  • Loading branch information
lentschi committed Jul 26, 2024
1 parent 8f87d7e commit 61a2b1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def up
change_table :order_articles do |t|
t.change :quantity, :decimal, precision: 8, scale: 3, null: false, comment: 'stored in `article_versions.group_order_unit`'
t.change :tolerance, :decimal, precision: 8, scale: 3, null: false, comment: 'stored in `article_versions.group_order_unit`'
t.change :units_to_order, :decimal, precision: 8, scale: 3, null: false, comment: 'stored in `article_versions.supplier_order_unit`'
t.change :units_billed, :decimal, precision: 8, scale: 3, null: true, comment: 'stored in `article_versions.supplier_order_unit`'
t.change :units_received, :decimal, precision: 8, scale: 3, null: true, comment: 'stored in `article_versions.supplier_order_unit`'
t.change :units_to_order, :decimal, precision: 11, scale: 6, null: false, comment: 'stored in `article_versions.supplier_order_unit`'
t.change :units_billed, :decimal, precision: 11, scale: 6, null: true, comment: 'stored in `article_versions.supplier_order_unit`'
t.change :units_received, :decimal, precision: 11, scale: 6, null: true, comment: 'stored in `article_versions.supplier_order_unit`'
end

change_table :group_order_articles do |t|
Expand Down
6 changes: 3 additions & 3 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,11 @@
t.integer "order_id", default: 0, null: false
t.decimal "quantity", precision: 8, scale: 3, default: "0.0", null: false, comment: "stored in `article_versions.group_order_unit`"
t.decimal "tolerance", precision: 8, scale: 3, default: "0.0", null: false, comment: "stored in `article_versions.group_order_unit`"
t.decimal "units_to_order", precision: 8, scale: 3, default: "0.0", null: false, comment: "stored in `article_versions.supplier_order_unit`"
t.decimal "units_to_order", precision: 11, scale: 6, default: "0.0", null: false, comment: "stored in `article_versions.supplier_order_unit`"
t.integer "lock_version", default: 0, null: false
t.integer "article_version_id", null: false
t.decimal "units_billed", precision: 8, scale: 3, comment: "stored in `article_versions.supplier_order_unit`"
t.decimal "units_received", precision: 8, scale: 3, comment: "stored in `article_versions.supplier_order_unit`"
t.decimal "units_billed", precision: 11, scale: 6, comment: "stored in `article_versions.supplier_order_unit`"
t.decimal "units_received", precision: 11, scale: 6, comment: "stored in `article_versions.supplier_order_unit`"
t.index ["article_version_id"], name: "index_order_articles_on_article_version_id"
t.index ["order_id", "article_version_id"], name: "index_order_articles_on_order_id_and_article_version_id", unique: true
t.index ["order_id"], name: "index_order_articles_on_order_id"
Expand Down

0 comments on commit 61a2b1a

Please sign in to comment.