Api calling

You should validate the uniqueness of the associations, not the foreign keys.

http://guides.rubyonrails.org/active_record_validations.html#presence

I don't think it's necessary to validate that the fields are integers either