From c8bbc269d742e0a4568d2809c720700794bcb2e6 Mon Sep 17 00:00:00 2001 From: sabrine33 Date: Wed, 11 Dec 2024 16:38:10 +0000 Subject: [PATCH] add HuMFre column to sample table --- db/migrate/20241211144506_add_hu_m_fre_code_to_sample.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20241211144506_add_hu_m_fre_code_to_sample.rb diff --git a/db/migrate/20241211144506_add_hu_m_fre_code_to_sample.rb b/db/migrate/20241211144506_add_hu_m_fre_code_to_sample.rb new file mode 100644 index 0000000..923e6e8 --- /dev/null +++ b/db/migrate/20241211144506_add_hu_m_fre_code_to_sample.rb @@ -0,0 +1,5 @@ +class AddHuMFreCodeToSample < ActiveRecord::Migration[7.0] + def change + add_column :sample, :huMFre_code, :string, limit: 16 + end +end diff --git a/db/schema.rb b/db/schema.rb index 1aaedb8..a099a6c 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: 2024_12_03_134455) do +ActiveRecord::Schema[7.0].define(version: 2024_12_11_144506) do create_table "aliquot", charset: "utf8mb3", collation: "utf8mb3_unicode_ci", force: :cascade do |t| t.string "id_lims", null: false, comment: "The LIMS system that the aliquot was created in" t.string "aliquot_uuid", null: false, comment: "The UUID of the aliquot in the LIMS system" @@ -366,6 +366,7 @@ t.string "gc_content" t.string "dna_source" t.string "priority_level", comment: "Priority level eg Medium, High etc" + t.string "huMFre_code", limit: 16 t.index ["accession_number"], name: "sample_accession_number_index" t.index ["id_lims", "id_sample_lims"], name: "index_sample_on_id_lims_and_id_sample_lims", unique: true t.index ["id_lims"], name: "index_sample_on_id_lims"