Two ideas. 1 - just rely on your validations to ensure that you have unique data.
2 - Push all of your data into a set before saving it to ensure uniqueness (though, this won't scale well, but if your data is small it might not be an issue). Cheers, Nicholas -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To view this discussion on the web visit https://groups.google.com/d/msg/rails-oceania/-/qyd_EI2vR3wJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
