Fix deprecation warning for using Relation#all