diff options
author | Christoph Helma <helma@in-silico.ch> | 2015-07-27 20:51:25 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2015-07-27 20:51:25 +0200 |
commit | 3cea6abe3606ea586b733e943737f77d58f215f9 (patch) | |
tree | dac742811597f550ea0eef5793af2d9596d99638 /lib/compound.rb | |
parent | cd1cba67830505cd2d23ec83e64c0beed42a9f28 (diff) |
reasonable query performace for data_entries
Diffstat (limited to 'lib/compound.rb')
-rw-r--r-- | lib/compound.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/compound.rb b/lib/compound.rb index 4a8089b..93f609f 100644 --- a/lib/compound.rb +++ b/lib/compound.rb @@ -15,10 +15,12 @@ module OpenTox field :chemblid, type: String field :image_id, type: BSON::ObjectId field :sdf_id, type: BSON::ObjectId + #belongs_to :dataset + #belongs_to :data_entry - def == compound - self.inchi == compound.inchi - end + #def == compound + #self.inchi == compound.inchi + #end # Create a compound from smiles string # @example |