rails/rails — pull request #17918 by byroot (2014-12-04 20:48:42+00:00)
Title: Redefine attribute methods after the column information have been reset

Fixes: https://github.com/rails/rails/issues/17900

@sgrif for review please.