rails/rails — pull request #15924 by sgrif (2014-06-26 15:46:34+00:00)
Title: Move writing unknown column exception to null attribute

Making this change revealed several subtle bugs related to models with
no primary key, and anonymous classes. These have been fixed as well,
with regression tests added.