Sha256: 00b9d9e1cd70742eacbac27ff656d75aa43a49eb0c7769318980ba1037f8d059

Contents?: true

Size: 454 Bytes

Versions: 5

Compression:

Stored size: 454 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

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

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ensembl-0.0.12 lib/ensembl/variation/tableless.rb
ensembl-0.0.11 lib/ensembl/variation/tableless.rb
ensembl-0.0.10 lib/ensembl/variation/tableless.rb
ensembl-0.0.9 lib/ensembl/variation/tableless.rb
ensembl-0.0.7 lib/ensembl/variation/tableless.rb