sanger/sequencescape

View on GitHub
app/models/flowcell_type.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

require './lib/record_loader/library_type_loader'

# Requested flowcell types for DPL-417
class FlowcellType < ApplicationRecord
  include SharedBehaviour::Named

  has_many :flowcell_types_request_types, inverse_of: :flowcell_type, dependent: :destroy
  has_many :request_types, through: :flowcell_types_request_types

  validates :name, presence: true, uniqueness: { case_sensitive: false }
end