Help for this question: http://stackoverflow.com/questions/17076520/how-to-create-an-association-that-sets-join-table-attributes-automatically