I think the _id is unnecessary in 'validates :subject_id, :type_id'