From b29b6176c97c8d08d3bfab9d9b9c6fbf54f59f3a Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Thu, 14 Nov 2019 09:59:16 +0100 Subject: [PATCH] Add closed_at to procedures table --- db/migrate/20191114084643_add_closed_at_to_procedures.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20191114084643_add_closed_at_to_procedures.rb diff --git a/db/migrate/20191114084643_add_closed_at_to_procedures.rb b/db/migrate/20191114084643_add_closed_at_to_procedures.rb new file mode 100644 index 000000000..6f290e1f9 --- /dev/null +++ b/db/migrate/20191114084643_add_closed_at_to_procedures.rb @@ -0,0 +1,5 @@ +class AddClosedAtToProcedures < ActiveRecord::Migration[5.2] + def change + add_column :procedures, :closed_at, :datetime + end +end diff --git a/db/schema.rb b/db/schema.rb index f19d1d49e..d3352d0e4 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2019_11_13_142816) do +ActiveRecord::Schema.define(version: 2019_11_27_084643) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -488,6 +488,7 @@ ActiveRecord::Schema.define(version: 2019_11_13_142816) do t.boolean "csv_export_queued" t.boolean "xlsx_export_queued" t.boolean "ods_export_queued" + t.datetime "closed_at" t.index ["declarative_with_state"], name: "index_procedures_on_declarative_with_state" t.index ["hidden_at"], name: "index_procedures_on_hidden_at" t.index ["parent_procedure_id"], name: "index_procedures_on_parent_procedure_id"