class SampleDetail < CommLogistics::Base::Model::Detail
  include Comm::Module::Model::Logging
  belongs_to :sample
  named_scope :child, lambda {|id| {:conditions => ["sample_id = ?", id]}}
  named_scope :with_parent, :joins => "INNER JOIN `samples` ON `sample_details`.`sample_id` = `samples`.`id`"
  class << columns_hash['ubd']
    def type
      :string
    end
  end
end
