summaryrefslogtreecommitdiff
path: root/lib/feature.rb
diff options
context:
space:
mode:
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