Add option to Class#class_attribute for skipping the query method
Deprecate ActiveRecord#Base.default_scopes?

See #10107.
Merge pull request #10113 from Agis-/default_scopes_predicate

Deprecate ActiveRecord#Base.default_scopes?

Closes #10107