method

join_to_update

rails latest stable - Class: ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.2.9) is shown here.

join_to_update(update, select)
public

In the simple case, MySQL allows us to place JOINs directly into the UPDATE query. However, this does not allow for LIMIT, OFFSET and ORDER. To support these, we must use a subquery.