fixing deprecated 'order' syntax in has_many