Sha256: d3ca02fec023931c1b61c3969253ad90ad4dded3ba80865df57511cd058c295c

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 Bytes

Contents

require 'active_record'
require 'activerecord-tableless'

module Ensembl
  module Variation
    class IndividualGenotype < ActiveRecord::Base
      has_no_table

      column :individual_id, :integer
      column :genotype_code_id, :integer
      column :allele, :string

      belongs_to :individual
      belongs_to :genotype_code

      #has_one :allele_code, through: :genotype_code

      delegate :individual_populations, to: :individual
      delegate :populations, to: :individual


    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ensembl-0.0.6 lib/ensembl/variation/tableless.rb