Add transport costs to Order

This commit is contained in:
Patrick Gansterer 2020-03-19 00:22:20 +01:00
parent 8cb70d819e
commit 4c567fece1
16 changed files with 141 additions and 6 deletions

View file

@ -0,0 +1,6 @@
class AddTransportToOrder < ActiveRecord::Migration
def change
add_column :orders, :transport, :decimal, precision: 8, scale: 2
add_column :group_orders, :transport, :decimal, precision: 8, scale: 2
end
end

View file

@ -174,6 +174,7 @@ ActiveRecord::Schema.define(version: 20181205010000) do
t.integer "lock_version", limit: 4, default: 0, null: false
t.datetime "updated_on", null: false
t.integer "updated_by_user_id", limit: 4
t.decimal "transport", precision: 8, scale: 2
end
add_index "group_orders", ["order_id"], name: "index_group_orders_on_order_id", using: :btree
@ -362,6 +363,7 @@ ActiveRecord::Schema.define(version: 20181205010000) do
t.date "pickup"
t.datetime "last_sent_mail"
t.integer "end_action", limit: 4, default: 0, null: false
t.decimal "transport", precision: 8, scale: 2
end
add_index "orders", ["state"], name: "index_orders_on_state", using: :btree