Hatena::Groupbioruby

"aac".translate #=> "N" このページをアンテナに追加 RSSフィード

2006-07-11UniProt on ActiveRecord

uniprot/app/models/entry.rb

|  uniprot/app/models/entry.rb - "aac".translate #=> "N" を含むブックマーク はてなブックマーク -  uniprot/app/models/entry.rb - "aac".translate #=> "N"  uniprot/app/models/entry.rb - "aac".translate #=> "N" のブックマークコメント

class Entry < ActiveRecord::Base
  has_many :acs
  has_one :gn, :include => [:loci, :synonyms, :orf_names]
  has_and_belongs_to_many :oss,  :join_table => :entries_oss
  has_and_belongs_to_many :ocs
  has_and_belongs_to_many :oxs, :join_table => :entries_oxs
  has_many :refs, :include => [:rxs, :rgs, :rps, :rcs]
  has_many :ccs
  has_many :drs
  has_and_belongs_to_many :kws
  has_many :fts
end

class Ac < ActiveRecord::Base
  belongs_to :entry
end

class De < ActiveRecord::Base
  belongs_to :entry
end

class Gn < ActiveRecord::Base
  belongs_to :entry
  has_many :synonyms,  :table_name => 'GnSynonym', :class_name => 'GnSynonym'
  has_many :loci,      :table_name => 'GnLocus',   :class_name => 'GnLocus'
  has_many :orf_names, :table_name => 'GnOrfName', :class_name => 'GnOrfName'
end

class GnSynonym < ActiveRecord::Base
  belongs_to :gn
end

class GnLocus < ActiveRecord::Base
  set_table_name "gn_loci"
  belongs_to :gn
end

class GnOrfName < ActiveRecord::Base
  belongs_to :gn
end

class Os < ActiveRecord::Base
  set_table_name "oss"
  has_and_belongs_to_many :entries, :join_table => :entries_oss
end

class Oc < ActiveRecord::Base
  has_and_belongs_to_many :entries
end

class Ox < ActiveRecord::Base
  set_table_name "oxs"
  has_and_belongs_to_many :entries, :join_table => :entries_oxs
end

class Ref < ActiveRecord::Base
  belongs_to :entry
  has_many :rxs
  has_many :rps
  has_many :rcs
  has_many :rgs
end

class Rx < ActiveRecord::Base
  set_table_name 'rxs'
  belongs_to :ref
end

class Rg < ActiveRecord::Base
  belongs_to :ref
end

class Rp < ActiveRecord::Base
  belongs_to :ref
end

class Rc < ActiveRecord::Base
  belongs_to :ref
end

class Cc < ActiveRecord::Base
  belongs_to :entry
end

class Dr < ActiveRecord::Base
  belongs_to :entry
end

class Kw < ActiveRecord::Base
  has_and_belongs_to_many :entries
end

class Ft < ActiveRecord::Base
  belongs_to :entry
end