turingschool-projects / lookingfor

Hello, is it me you're looking for?
2 stars 4 forks source link

[wip] Change jobs.create! to jobs.find_or_create on the job_creator #122

Closed m-scherer closed 7 years ago

m-scherer commented 7 years ago

@lsaville @alishersadikov

lsaville commented 7 years ago

@mscherer11 This is a decent way to handle the problem. The other option is to add that uniqueness validation across two columns, I think we had once talked about the combination of company and job title being sufficient. Then the create would just bounce from the database. I'm really not sure which is better...