add check if meghod defined to prevent  You tried to define an association named creator on the model x class, but this will conflict with a method creator already defined by Active Record.