rails/rails — pull request #7050 by kytrinyx (2012-07-13 20:53:49+00:00)
Title: Expand the caveat about models in migrations in the rails guide.

This is an attempt to address issue #6939, where an earlier migration
added a column to the database, and a later migration uses a model and
references that column.

When both migrations were run together with `rake db:migrate` the column
information in memory still referenced the old table structure.

Running the migrations separately fixed this, as a new connection was
then established before referencing the model. Explicitly calling
`reset_column_information` is a more reliable workaround.