Add an option to automatically finish an order

This commit is contained in:
Patrick Gansterer 2017-10-12 00:20:30 +02:00
parent c3927e4013
commit 564492afe4
10 changed files with 77 additions and 3 deletions

View file

@ -0,0 +1,5 @@
class AddEndActionToOrder < ActiveRecord::Migration
def change
add_column :orders, :end_action, :integer, default: 0, null: false
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20171001000000) do
ActiveRecord::Schema.define(version: 20171001020000) do
create_table "article_categories", force: :cascade do |t|
t.string "name", limit: 255, default: "", null: false
@ -253,6 +253,7 @@ ActiveRecord::Schema.define(version: 20171001000000) do
t.date "pickup"
t.integer "invoice_id"
t.datetime "last_sent_mail"
t.integer "end_action", default: 0, null: false
end
add_index "orders", ["state"], name: "index_orders_on_state", using: :btree