make type_cast_value a class level method
Merge pull request #9342 from hone/db_migrate_with_database_url

Fix ActiveRecord::ConnectionAdapters::ConnectionSpecification::ResolverTest