WIP: Adding flags for standing order placement and confirmation to proxy_orders table

This commit is contained in:
Rob Harrington
2016-12-22 15:58:50 +11:00
parent f92b824f52
commit 01cbd7ae9d
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
class AddPlacedAtAndConfirmedAtToProxyOrders < ActiveRecord::Migration
def change
add_column :proxy_orders, :placed_at, :datetime
add_column :proxy_orders, :confirmed_at, :datetime
end
end

View File

@@ -357,6 +357,8 @@ ActiveRecord::Schema.define(:version => 20170921065259) do
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "order_cycle_id", :null => false
t.datetime "placed_at"
t.datetime "confirmed_at"
end
add_index "proxy_orders", ["order_cycle_id", "standing_order_id"], :name => "index_proxy_orders_on_order_cycle_id_and_standing_order_id", :unique => true