Skip to content

Commit

Permalink
add index on STI type column
Browse files Browse the repository at this point in the history
  • Loading branch information
al2o3cr committed Nov 15, 2009
1 parent e7c4768 commit 7fd8f57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hobofields/lib/hobo_fields/model_extensions.rb
Expand Up @@ -22,6 +22,7 @@ def self.inherited(klass)
fields do |f|
f.field(inheritance_column, :string)
end
index(inheritance_column)
super
end

Expand Down

0 comments on commit 7fd8f57

Please sign in to comment.