remove depricated Validatior#setup
Fix cache_digest rake tasks

Bring cache_digests:* rake tasks up-to-date with the API changes introduced in
637bb726cac60aaa1f7e482836458aa73e17fbb7
Inline PG array type casting helper
Merge pull request #15607 from sgrif/sg-array-type-cast

Inline PG array type casting helper
Merge pull request #15605 from mekishizufu/fix_cache_digests_rake_tasks

Fix cache_digest rake tasks
Keep the types of virtual columns after yaml serialization

On MySQL and PostgreSQL, the adapter does not type cast virtual columns
for us.
Merge pull request #15603 from kuldeepaggarwal/remove-deprecation-method

remove depricated Validatior#setup
Merge pull request #15609 from sgrif/sg-yaml-virtual-columns

Keep the types of virtual columns after yaml serialization
Silence warnings in tests.

```
activerecord/test/cases/adapters/postgresql/range_test.rb:159: warning: (...) interpreted as grouped expression
activerecord/test/cases/finder_test.rb:38: warning: shadowing outer local variable - e
activerecord/test/cases/finder_test.rb:43: warning: shadowing outer local variable - e
```
Merge pull request #15610 from sgrif/silence-warnings

Fix warnings in tests