ActiveRecord doesn't provide a way to combine queries with "or", but you can do it in SQL:
@production_versions =
Version.where(:item_type => Production)
.where("object like ? or object_changes like ?",
"%miniature_id: #{@miniature.id}%", "%miniature_id: #{@miniature.id}%")
As well as interleaving the results, doing it this way is more efficient, since it will only run one database query and will only instantiate each object once even if it satisfies both conditions. If you want to be sure of order, however, you should order
by something.