Refactoring generate association table with polymprphic, in more rails centric way.