Add test for ActiveRecord::Relation YAML serialization, for #5303 issue
Merge pull request #12749 from iantropov/issue_5303

Add test for ActiveRecord::Relation YAML serialization, for #5303 issue