I make two samples by model Picture
old = Picture.where(state: 'old').order("ctr DESC").limit(20) new = Picture.where(state: 'new').order("id DESC").limit(5) How to make one of two ActiveRecord :: Relation? Moreover, the order of elements old should remain the same, and new should be located after the 5th element of old . The result should be like this (o - old, + - new)
ooooo + + + + + ooooooooooooooo A bit confusing, but very necessary)
PS Is it possible to perform such a task with one query in general, instead of the first two?