From 0c1943419e8c50b8f1a5b2dbb94363dceb5c039c Mon Sep 17 00:00:00 2001 From: Javid Ahmed Date: Wed, 7 Jun 2023 13:46:27 +0100 Subject: [PATCH] Rename some columns and edit comments --- db/migrate/20230605152453_create_labware_location.rb | 8 ++++---- db/schema.rb | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/db/migrate/20230605152453_create_labware_location.rb b/db/migrate/20230605152453_create_labware_location.rb index e5c96f0a..6fef1ccb 100644 --- a/db/migrate/20230605152453_create_labware_location.rb +++ b/db/migrate/20230605152453_create_labware_location.rb @@ -4,12 +4,12 @@ class CreateLabwareLocation < ActiveRecord::Migration[7.0] def change create_table :labware_location do |t| - t.string :item_barcode, unique: true, null: false, comment: 'Barcode on the stored labware' + t.string :labware_barcode, unique: true, null: false, comment: 'Barcode on the stored labware' t.string :location_barcode, null: false, comment: 'Barcode associated with storage location' t.string :full_location_address, null: false, comment: 'Fully qualifed address of the nested location' - t.integer :coord_position, null: true, comment: 'Position' - t.integer :coord_row, null: true, comment: 'Row' - t.integer :coord_column, null: true, comment: 'Column' + t.integer :coordinate_position, null: true, comment: 'Coordinate position of labware in storage location' + t.integer :coordinate_row, null: true, comment: 'Coordinate row of labware in storage location' + t.integer :coordinate_column, null: true, comment: 'Coordinate column of labware in storage location' t.string :lims_id, null: false, comment: 'ID of the storage system this data comes from' t.string :stored_by, null: false, comment: 'Username of the person who placed the item there' t.datetime :stored_at, null: false, comment: 'Datetime the item was stored at this location' diff --git a/db/schema.rb b/db/schema.rb index c0143003..e364e019 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -108,12 +108,12 @@ end create_table "labware_location", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci", force: :cascade do |t| - t.string "item_barcode", null: false, comment: "Barcode on the stored labware" + t.string "labware_barcode", null: false, comment: "Barcode on the stored labware" t.string "location_barcode", null: false, comment: "Barcode associated with storage location" t.string "full_location_address", null: false, comment: "Fully qualifed address of the nested location" - t.integer "coord_position", comment: "Position" - t.integer "coord_row", comment: "Row" - t.integer "coord_column", comment: "Column" + t.integer "coordinate_position", comment: "Coordinate position of labware in storage location" + t.integer "coordinate_row", comment: "Coordinate row of labware in storage location" + t.integer "coordinate_column", comment: "Coordinate column of labware in storage location" t.string "lims_id", null: false, comment: "ID of the storage system this data comes from" t.string "stored_by", null: false, comment: "Username of the person who placed the item there" t.datetime "stored_at", null: false, comment: "Datetime the item was stored at this location"