PersistencesTest was renamed to PersistenceTest in rails 4.1, so we have to do it in our codebase also
Use Arel::Nodes::BindParam instead of Arel.sql for substitute_at so that ActiveRecord::Relation merging works properly - tests RelationMergingTest#test_merging_reorders_bind_params and RelationMergingTest#test_relation_to_sql
Coerced test for ActiveRecord::PredicateBuilderTest#test_registering_new_handlers since the regex doesn't work for T-SQL
Fixed test NamedScopingTest#test_scopes_honor_current_scopes_from_when_defined by adding a second column to the ORDER BY condition of the :ranked_by_comments scope of the Post model
Added savepoint name param to create_savepoint, release_savepoint and rollback_to_savepoint