Created
June 27, 2010 02:56
-
-
Save rtirrell/454585 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 SubsetComparison | |
include DataMapper::Resource | |
property :id, Integer, :key => true | |
property :subset_A, Integer | |
property :subset_B, Integer | |
property :comparison_type, Enum["CTL_VS_DZ", "UNTRT_VS_TRT", "TIME"] | |
property :disease_concept_id, String | |
property :tissue_concept_id, String | |
property :drug, String | |
property :experiment_id, Integer | |
property :QA_status, Enum["VERIFIED", "UNVERIFIED", "IGNORE"] #Enum[:VERIFIED, :UNVERIFIED, :IGNORE] | |
property :species, String | |
property :comments, Text | |
def self.default_repository_name | |
:nosology | |
end | |
# end | |
end | |
>> require 'nosology_orm' | |
=> true | |
>> s = SubsetComparison.get(1060) | |
ArgumentError: The number of arguments for the key is invalid, expected 0 but was 1 | |
from /Library/Ruby/Gems/1.8/gems/dm-core-1.0.0/lib/dm-core/model.rb:826:in `assert_valid_key_size' | |
from /Library/Ruby/Gems/1.8/gems/dm-core-1.0.0/lib/dm-core/model.rb:277:in `get' | |
from (irb):3 | |
>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment