Problem
You have correctly setup your Single Table Inheritance tables as in:
class Parent < ActieRecord::Base ; end
class Child < Parent ; end
but everytime you are trying to use that in a cucumber feature, or in rails console you get the following error:
The single-table inheritance mechanism failed to locate the subclass: 'child'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite Parent.inheritance_column to use another column for that information. (ActiveRecord::SubclassNotFound)
Solution
Make sure that when use the subclass name in a feature, or you create a record in the database the initial letter is in capital!
So make sure that in this case the type column contains 'Child' and not 'child'