From 8c6c59980bc82dc2177147f2fe34adf8bfbc1539 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Mon, 24 Aug 2015 12:17:07 +0200 Subject: Model::Prediction with tests, initial indexes --- lib/feature.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/feature.rb') diff --git a/lib/feature.rb b/lib/feature.rb index b2bc1f5..22b2846 100644 --- a/lib/feature.rb +++ b/lib/feature.rb @@ -29,6 +29,7 @@ module OpenTox # Feature for SMARTS fragments class Smarts < NominalFeature field :smarts, type: String + index "smarts" => 1 def self.from_smarts smarts self.find_or_create_by :smarts => smarts end -- cgit v1.2.3