Sha256: f7b8b1455a9a4f223b8eebd7a9363e6c7e7d96496d739b4953fb061a1d2bef50

Contents?: true

Size: 501 Bytes

Versions: 1

Compression:

Stored size: 501 Bytes

Contents

class Modification < ActiveRecord::Base
  self.primary_key = "record_id"
  
  has_many :fragments, :foreign_key => 'mod_key'
  has_many :alt_names, :foreign_key => 'mod_key'
  
  has_many :xrefs, :foreign_key => 'mod_key'
  has_many :xref_sources, :through => :xrefs
  
  has_many :mod2bricks, :foreign_key => 'mod_key'
  
  has_many :specificities, :foreign_key => 'mod_key'
  has_many :positions, :through => :specificities
  has_many :classifications, :through => :specificities

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_unimod_generator-0.1.0 app/models/modification.rb