Add option to class_attribute for skipping the predicate method
Remove ActiveRecord#Base.default_scopes?

Fixes ##10107.