drjorgepolanco/mks — pull request #1 by casecode (2014-12-05 15:44:32+00:00)
Title: use first_or_create to avoid ingredient duplication

This will solve the problem of duplicate ingredients. But, I noticed that you seem to be ignoring the recipes through relationship.