I'm not sure about that. I guess, for table name, you should get the prefix from `table_name_prefix`, not from `klass.parent`. Take a look on [this](http://api.rubyonrails.org/classes/ActiveRecord/ModelSchema/ClassMethods.html#method-i-table_name).

/cc @rafaelfranca, @tenderlove