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.