We introduced this bug in commit 55d339572, since we didn't take hidden records into consideration. I've tried to use `update_column` to simplify the code, but got a syntax error `unnamed portal parameter` and didn't find how to fix it.
55d339572
spec_helper.rb
Rails/I18nLocaleAssignment