Created an unscope method for removing relations from a chain of
relations. Specific where values can be unscoped, and the unscope method
still works when relations are merged or combined.
Merge pull request #9200 from wangjohn/unscoping_activerecord_merging

Introduce relation #unscope