Created
July 1, 2010 02:03
-
-
Save rtirrell/459457 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GSE < GEO | |
storage_names[:expr_geo] = "gse_list" | |
property :gse, Integer, :key => true | |
has n, :gse_gsms, "GSEGSM", :child_key => [:gse], :parent_key => [:gse] | |
has n, :gsm_objects, "GSM", :through => :gse_gsm | |
end | |
class GSEGSM < GEO | |
storage_names[:expr_geo] = "gse_gsm" | |
property :gse, Integer, :key => true | |
belongs_to :gse_object, "GSE", :child_key => [:gse], :parent_key => [:gse], :key => true | |
belongs_to :gsm_object, "GSM", :child_key => [:gsm], :parent_key => [:gsm], :key => true | |
end | |
class GSM < GEO | |
storage_names[:expr_geo] = "gsm_list" | |
property :gsm, Integer, :key => true | |
has n, :gse_gsms, "GSEGSM", :child_key => [:gsm], :parent_key => [:gsm] | |
has n, :gse_objects, "GSE", :through => :gse_gsm | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment