adding related table select in activerecord