Make an OR with ransack
Try the following:
Position.search( {:description_or_code_cont => field}).result(:distinct => true).to_sql
Try the following:
Position.search( {:description_or_code_cont => field}).result(:distinct => true).to_sql