backported with 'git diff v3.0.3..v3.0.20 activeresource/test/cases/base/schema_test.rb | patch -p1'.