moved problem orders to a field in the database

Do you actually need the `order_details:`? Since you're already on the `order_details` association, couldn't you just do `where(problem: true)`? And it probably would be better to make this a scope on OrderDetail.