I'm working with two tables Video and Picture and I would like to regroup them using SQL instead of ruby. This is how I do it now :
@medias = (Video.all + Picture.all).sort_by { |model| model.created_at }
Is their a way to do the same thing only with SQL/ActiveRecord?