Permalink
Browse files

add index on STI type column

  • Loading branch information...
1 parent e7c4768 commit 7fd8f573d06d8822893c491f2450fea5657a94d4 @al2o3cr al2o3cr committed Nov 15, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 hobofields/lib/hobo_fields/model_extensions.rb
@@ -22,6 +22,7 @@ def self.inherited(klass)
fields do |f|
f.field(inheritance_column, :string)
end
+ index(inheritance_column)
super
end

0 comments on commit 7fd8f57

Please sign in to comment.