From 351d295c35dc7d2da6a36df35c5be4c8256401f0 Mon Sep 17 00:00:00 2001 From: Kat Date: Mon, 26 Sep 2022 16:34:53 +0100 Subject: [PATCH] Add sex1 column --- db/migrate/20220926153206_add_sex1_column.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20220926153206_add_sex1_column.rb diff --git a/db/migrate/20220926153206_add_sex1_column.rb b/db/migrate/20220926153206_add_sex1_column.rb new file mode 100644 index 000000000..bef6e7662 --- /dev/null +++ b/db/migrate/20220926153206_add_sex1_column.rb @@ -0,0 +1,5 @@ +class AddSex1Column < ActiveRecord::Migration[7.0] + def change + add_column :sales_logs, :sex1, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index ad1371b85..a0a10507d 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_09_23_093628) do +ActiveRecord::Schema[7.0].define(version: 2022_09_26_153206) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -338,6 +338,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_09_23_093628) do t.integer "beds" t.integer "age1" t.integer "age1_known" + t.string "sex1" t.index ["created_by_id"], name: "index_sales_logs_on_created_by_id" t.index ["managing_organisation_id"], name: "index_sales_logs_on_managing_organisation_id" t.index ["owning_organisation_id"], name: "index_sales_logs_on_owning_organisation_id"