From 3cea6abe3606ea586b733e943737f77d58f215f9 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Mon, 27 Jul 2015 20:51:25 +0200 Subject: reasonable query performace for data_entries --- lib/compound.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/compound.rb') 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 -- cgit v1.2.3