Skip to content

Instantly share code, notes, and snippets.

@carlcrott
Created October 29, 2012 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlcrott/e68fea1baa070e68b984 to your computer and use it in GitHub Desktop.
Save carlcrott/e68fea1baa070e68b984 to your computer and use it in GitHub Desktop.
# Table that records information for citations from which data
class Citation < ActiveRecord::Base
include Overrides
...
#Define relationships to other tables
has_and_belongs_to_many :sites
has_and_belongs_to_many :treatments
has_many :managements
has_many :yields
has_many :traits
has_many :priors
has_many :ebi_methods, :class_name => "Methods"
belongs_to :user
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment