From fc6b89b46c2b4881ebe56440c4ad66573ad1dac7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Meny?= Date: Tue, 26 Apr 2022 13:31:25 +0100 Subject: [PATCH] Adding new 2022_2023 field --- db/migrate/20220426122618_add_joint_to_case_logs.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20220426122618_add_joint_to_case_logs.rb diff --git a/db/migrate/20220426122618_add_joint_to_case_logs.rb b/db/migrate/20220426122618_add_joint_to_case_logs.rb new file mode 100644 index 000000000..3621b9bbf --- /dev/null +++ b/db/migrate/20220426122618_add_joint_to_case_logs.rb @@ -0,0 +1,5 @@ +class AddJointToCaseLogs < ActiveRecord::Migration[7.0] + def change + add_column :case_logs, :joint, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index 94a44efde..449c77cdd 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[7.0].define(version: 2022_04_25_145228) do +ActiveRecord::Schema[7.0].define(version: 2022_04_26_122618) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -219,6 +219,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_04_25_145228) do t.integer "lar" t.integer "irproduct" t.string "old_id" + t.integer "joint" t.index ["managing_organisation_id"], name: "index_case_logs_on_managing_organisation_id" t.index ["old_id"], name: "index_case_logs_on_old_id", unique: true t.index ["owning_organisation_id"], name: "index_case_logs_on_owning_organisation_id"