ce830d3c60
`delete_all` doesn't support limit, so you'd need to subquery that. And instead of subquerying with `where(id: query)`, it's better to use an `INNER JOIN`. This method also works with MySQL, while subquerying doesn't (without another layer of subquerying) Reference: https://stackoverflow.com/questions/17892762/mysql-this-version-of-mysql-doesnt-yet-support-limit-in-all-any-some-subqu/17892886#17892886 |
||
---|---|---|
.. | ||
rename_reserved_paths_migration | ||
count_spec.rb | ||
grant_spec.rb | ||
median_spec.rb | ||
migration_helpers_spec.rb | ||
multi_threaded_migration_spec.rb | ||
sha_attribute_spec.rb | ||
subquery_spec.rb |