summaryrefslogtreecommitdiff
path: root/lib/feature.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2015-08-24 12:17:07 +0200
committerChristoph Helma <helma@in-silico.ch>2015-08-24 12:17:07 +0200
commit8c6c59980bc82dc2177147f2fe34adf8bfbc1539 (patch)
tree35fb78389a9ac2d54d4d2190c41a8269a754f205 /lib/feature.rb
parent398d8ca681db3aa0a0552eee026705e60dd8449d (diff)
Model::Prediction with tests, initial indexesv0.0.8
Diffstat (limited to 'lib/feature.rb')
-rw-r--r--lib/feature.rb1
1 files changed, 1 insertions, 0 deletions
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