-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #511 from sanger/dpl-513-create-labware-locations-…
…table DPL-513 Create labware locations table
- Loading branch information
Showing
3 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# frozen_string_literal: true | ||
|
||
class LabwareLocation < ApplicationRecord | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# frozen_string_literal: true | ||
|
||
# Added a new table labware_location | ||
class CreateLabwareLocation < ActiveRecord::Migration[7.0] | ||
def change | ||
create_table :labware_location do |t| | ||
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 :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' | ||
|
||
t.timestamps | ||
|
||
t.index :location_barcode | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters