Skip to content

Commit

Permalink
Merge pull request #527 from sanger/dpl-754-add-fields-to-long-read-q…
Browse files Browse the repository at this point in the history
…c-results

DPL-754 Add new field priority_level to sample table
  • Loading branch information
Sangeetha-Bheeman authored Sep 4, 2023
2 parents b6313fb + 4fa8371 commit 962773b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions db/migrate/20230802153621_add_priority_level_to_sample.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# frozen_string_literal: true

# Adding priority_level e.g. Medium, High etc to receive this information
# in a sample message from TOL through traction qc_receptions endpoint
class AddPriorityLevelToSample < ActiveRecord::Migration[7.0]
def change
change_table :sample, bulk: true do |t|
t.string :priority_level, comment: 'Priority level e.g. Medium, High etc'
end
end
end
1 change: 1 addition & 0 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@
t.string "customer_measured_volume"
t.string "gc_content"
t.string "dna_source"
t.string "priority_level", comment: "Priority level eg Medium, High etc"
t.index ["accession_number"], name: "sample_accession_number_index"
t.index ["id_sample_lims", "id_lims"], name: "index_sample_on_id_sample_lims_and_id_lims", unique: true
t.index ["name"], name: "sample_name_index"
Expand Down

0 comments on commit 962773b

Please sign in to comment.